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
Why swings are called lightweight components?
What is swing package in java?
What is the role of java swing?
What is swing delegation event model in java?
What is java swing gui?
Which containers use a border Layout as their default layout in swing?
What are the different types of layout managers used in swing?
What is double buffering ?
How to generate bill in java swing?
What is swing in java javatpoint?
Is swing an adjective?
What is import javax swing * used for?
What are heavyweight components? What is lightweight component?
What is a swing application?
What's java swing?