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 the difference between the size and capacity of a vector?
How do you input a string in java?
What is hashing in java?
What is methodological theory?
What is the benefit of singleton pattern?
How can an object be unreferenced?
Is java based on c?
How can we achieve thread safety in java?
What is general methodology?
Differentiate storage classes on the basis of their scope?
What does split function do in java?
List two java ide’s?
What is a bufferedreader?
What are the differences between throw and throws?
Does java support multiple inheritances?