Sr.Java Web Developer Question: Download Sr.Java Web Developer PDF

Please explain what is exception hierarchy in java?

Tweet Share WhatsApp

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.

Download Sr.Java Web Developer PDF Read All 64 Sr.Java Web Developer Questions
Previous QuestionNext Question
Do you know what is the jspDestroy() method?Explain me what are the important methods of Java Exception Class?