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 awt and swing?
What is swing api?
What are the differences between Swing and AWT?
How to add calendar in java swing using eclipse?
Why swings are called lightweight components?
Which layout does swing use by default?
What are the advantage of swing over awt?
What is swing delegation event model in java?
What is the mean of swing?
What are the different components that are used to show a container?
What is a component in swing?
What is java swing used for?
How to move from one page to another in java swing?
What is java swing components?
How is parsing html used in swing?