Sr.Java Web Developer Question:

Please explain what is exception hierarchy in java?

Sr.Java Web Developer Interview Question
Sr.Java Web Developer Interview Question

Answer:

The hierarchy is as follows:

Throwable is a parent class of all Exception classes. There are two types of Exceptions: Checked exceptions and UncheckedExceptions or RunTimeExceptions. Both type of exceptions extends Exception class whereas errors are further classified into Virtual Machine error and Assertion error.


Previous QuestionNext Question
Do you know what is the jspDestroy() method?Explain me what are the important methods of Java Exception Class?