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
For class CFoo { }; what default methods will the compiler generate for you>?
Explain different ways of creating a thread. Which one would you prefer and why?
What is flag in python?
Define an enumeration?
In the below example, how many string objects are created?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
What is regex java?
How to do encapsulation in java?
What is the independent variable in an experiment?
What is finally in Java?
What is ternary operator in java?
Why string is a class?
What is tcp and udp?
Is static a singleton?
How is it possible for two string objects with identical values not to be equal under the == operator?