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 are keywords and reserved words in java?
What is jrmp?
Can we have two main methods in a java class?
Does java trim remove newline?
What does indexof return in java?
How do you sort a set in java?
What is string builder in java?
What is the purpose of garbage collection in java? When is it used?
What is the difference between static class and normal class?
What classes of exceptions may be thrown by a throw statement?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
Can we print null in java?
Can we override constructors in java?
What is use of static method?
What is a superclass?