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 java swing components?
What is the design pattern that java uses for all swing components ?
What is an event and what are the models available for event handling?
What are swing components?
Why swing components are called lightweight components?
What is the what is the difference between invokeandwait() and invokelater()? ?
What is swing components in java?
Why swing is used in java?
How to create a swing gui in java?
What are the benefits if Swing over AWT?
What class is at the top of the AWT event hierarchy?
What is the purpose of action interface in swing?
What is swing package in java?
What is jpanel swing?
What is import javax swing * used for?