Google News
logo
Java - Interview Questions
What are checked exceptions?
The exceptions detected by java compiler at compilation time are called checked exceptions.

Example : IOException, ClassNotFoundException.

Exception Hierarchy :
All exception classes are subtypes of the java.lang.Exception class. The exception class is a subclass of the Throwable class. Other than the exception class there is another subclass called Error which is derived from the Throwable class. Exception Hierarchy is clearly shown in the figure below.

Advertisement