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

What are the different types of collections views being provided by the map interface? : java collections

689


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

631


What are the different types of classes implemented in the set interfaces? : java collections

712


What are the differences between the java collection and the java list? : java collections

699


What is the use of hashcode in java ?

670






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

685


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

1695


What are the different types of features of the java collections framework? : java collections

670


What are the different types of ways where you can iterate over a list? : java collections

656


What are maps interfaces in the java collections? : java collections

663


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2662


What is the enumerator of the java collection framework? : java collections

661


What do you understand by synchronization? Why is it important?

676


Which interface does java.util.hashtable implement?

802


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

676