Answer Posted / harmeet
Checked Exceptions must be caught and thrown by the user
otherwise compile time error will be displayed saying it
must be catched. We've to catch those exceptions using try
and catch blocks.
Eg:Class.forName() throws ClassNotFoundException, when
trying to load the specified file in class.forName().
whereas Unchecked Exceptions are handled by jvm, user need
not to handle those exceptions.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a final class ?
What is command line used for?
Can we write multiple catch blocks under single try block?
What is instance example?
Can a class extends itself in java?
How does a cookie work in Servlets?
What does java final mean?
What is module in oop?
Why is the type for real numbers called double?
What 5 doubled?
What is private static in java?
What is an abstract class and what is it’s purpose?
What is the difference between variable & constant?
What is compareto?
Why doesn't the java library use a randomized version of quicksort?