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


Please Help Members By Posting Answers For Below Questions

Why swings are called lightweight components?

521


What is swing package in java?

516


What is the role of java swing?

499


What is swing delegation event model in java?

549


What is java swing gui?

468






Which containers use a border Layout as their default layout in swing?

559


What are the different types of layout managers used in swing?

516


What is double buffering ?

564


How to generate bill in java swing?

678


What is swing in java javatpoint?

532


Is swing an adjective?

547


What is import javax swing * used for?

552


What are heavyweight components? What is lightweight component?

528


What is a swing application?

498


What's java swing?

563