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
Why char array is preferred over string for storing password?
What is the difference between I ++ and ++ I in java?
What is mutable object and immutable object?
How does the garbage collector works in java?
What is difference between ++ I and I ++ in java?
Can an interface be final?
Is integer immutable in java?
Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?
What is the basic of java?
What is difference between an object and a class?
design an lru cache in java?
Give us the name of the list layoutmanagers in java?
How do you find the absolute value?
What does string mean in java?
What kind of variables a class can consist of?