what is the difference between checked and unchecked
Exceptions?

Answer Posted / surya bondada

The exception which are checked by the complier are called
as checked exception.
The exception which are not checked by the complier are
called as unchecked exceptions.

Example for Checked Exceptions are:Exception,intrupted
Exception,serveltException,Io Exception and all child
classes are the examples for checked Exceptions.

Example for Uncheked Exceptions are:Runtime Exception it is
child of Exception,and child classes of Runtime Exceptions
like ArrayIndexOutofOrder,illegalmonitersafe
exception,illegal argement exception,Arthimatic
exception,and class cast exception,And All Error and child
classes are example for unchecked .

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should we create system software ( e.g operating system ) in java ?

581


What is the Spring2.5 MVC Navigation flow?

5378


please mail me the interview question based on java/j2ee

1538


HOW MUCH PERCENTAGE WE DEDUCT FOR OUR SUPPLIERS OR OTHER PROFESSIONALS

1583


Which sorting algorithm is used by collections.sort() in java ?

555






What is the use of the list interface in the java collection? : java collections

606


What is the difference between comparable and comparator in java.util pkg?

595


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

1602


Which interface does java.util.hashtable implement?

679


What are the queues in the java collection framework? : java collections

554


who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

1821


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

1593


can u draw class/object diagram for ATM

5534


What are the classes in the java collection framework? : java collections

599


What is iterator in the java collections framework? : java collections

542