Answer Posted / aparna
Checked exceptions should be taken care by the user using
try and catch blocks otherwise runtime error occurs
for eg:
class.forName() method throws ClassNotFoundException which
should be caught between try and catch blocks
Unchecked exceptions are taken care by the jvm itself, user
need not worry about these type of exceptions
for eg:
Integer.parseInt() method throws NullPointerException which
need not be placed between try and catch blocks
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is a blocking method in Java?
What is the meaning of immutable regarding string?
What is return keyword in java?
Should database connections be singleton?
Why synchronization is important?
What are the advantages of exception handling in java?
What is the difference between scrollbar and scrollpane?
What is public static?
How dead lock situation occurs in java and how you can identify it?
Explain the access modifiers for a class, method and variables?
How do you remove duplicates in java?
How do you calculate square roots?
Can we convert list to set in java?
Why can we not override static method?
State two differences between C and Java.