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 does nullpointerexception mean?
What is nextline method in java?
What is java’s garbage collected heap?
What is string immutability?
What is palindrome in java?
What is a short in java?
Explain the difference between the public, private, final, protected, and default modifiers?
Is list ordered in java?
What is the buffer limit?
What is the dot operator?
What is thread pool in java with example?
How to use Media tracker Class.
What is meant by nested loop?
Is there a jre for java 11?
How can we achieve thread safety in java?