what is difference between checked and unchecked exception
plz explain examples ?
Answer Posted / brahmi
Unchecked Exceptions :
Unchecked exceptions are RuntimeException and any of its
subclasses. Class Error and its subclasses also are
unchecked.
Unchecked runtime exceptions represent conditions that,
generally speaking, reflect errors in your program's logic
and cannot be reasonably recovered from at run time.
With an unchecked exception, however, compiler doesn't
force client programmers either to catch the exception or
declare it in a throws clause.
The most Common examples are ArrayIndexOutOfBoundException,
NUllPointerException ,ClassCastException
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is swing api?
Is swing an api?
How does accessibility works in swings?
What are controls and what are different types of controls in awt?
Why are swing components called lightweight?
What is an event handler in swing?
Is swing better than awt?
What method is used to specify a container's layout?
In what context should the value of swing components be updated directly?
How is multi-threading gets implemented using swing?
What is the class in swing to change the appearance of the frame in runtime?
What is jpanel swing?
What is frame in java swing?
How to link two forms in java swing?
Explain how to render an html page using only swing.