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
Explain the difference between swing and jsf.
What are heavyweight components? What is lightweight component?
Is swing thread-safe?
What is the use of java swing?
What is java swing gui?
Why are swings considered lightweight?
What is content pane in swing?
What is swing delegation event model in java?
What is java swing package?
What is swing api?
What is java swing used for?
How to change button color in java swing?
What is jfc swing in java?
What is swing used for?
What is pane in swing?