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
How to move from one page to another in java swing?
What is javax swing joptionpane?
What is import javax swing in java?
Write a program to paint the off-screen buffer in swings
What is swing in java javatpoint?
How is parsing html used in swing?
Why would you use swingutilities.invokeandwait or swingutilities.invokelater?
What is awt and swing?
Is swing an adjective?
How to perform action on button in java swing?
What is swing container?
What's java swing?
What is the difference between swing and awt?
Which containers use a border Layout as their default layout in swing?
What is an event handler in swing?