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

What is content pane in swing?

698


Explain how to render an html page using only swing.

1224


What is java swing application?

717


What does javax swing do?

710


What's java swing?

714


What is the what is the difference between invokeandwait() and invokelater()? ?

829


How do you swing an applet?

803


What is awt and swing in java?

689


Which method is used by the applet to recognize the height and width?

847


How to create image slideshow in java swing?

803


What are the benefits of swing over awt?

796


What is jfc? What are the features of jfc?

780


What is event in java swing?

699


Why swing is used in java?

726


What are the components of swing?

729