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 are the different types of constructor?

749


How many types of java are there?

772


What is command line argument

966


What is the purpose of a default constructor?

845


How is a structure different from array ?

812


What is the difference between method and means?

821


What is keyword in oop?

772


Difference between vector and arraylist.

803


Can you call a method on a null object?

784


What are the 6 boolean operators?

794


How do you declare an array in java?

773


what do you mean by java annotations?

802


What is a literal coding?

752


When should a function throw an exception?

844


Is java pass by value or pass by reference?

768