What are different types of Exceptions?.

Answer Posted / m.k.sreenivas

Checked exceptions:
A checked exception is some subclass of Exception (or
Exception itself), excluding class RuntimeException and its
subclasses. Each method must either handle all checked
exceptions by supplying a catch clause or list each
unhandled checked exception as a thrown exception.

Unchecked exceptions:
All Exceptions that extend the RuntimeException class are
unchecked exceptions. Class Error and its subclasses also
are 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 is meant by vector class, dictionary class, hash table class, and property class?

908


Why is it called boolean?

757


Why lambda expression is used in java?

774


What is the latest version of java?

804


How we create object in copy constructor?

875


Can we have any code between try and finally blocks?

777


What is factor r?

733


What is indexof?

734


What is the use of parseint in java?

766


What will be the default values of all the elements of an array defined as an instance variable?

780


Can we overload the main() method?

778


Why java doesn’t support multiple inheritances?

788


Is list thread safe in java?

705


What is data structure in java?

736


What is the difference between sop and work instruction?

692