InterviewSolution
| 1. |
Explain The Exception Hierarchy In Java? |
|
Answer» Throwable class is the super class of all the exception types. Below Throwable class there are two subclasses which DENOTES two distinct branches of exceptions -
Examples of error are StackOverflowError, OutOfMemoryError etc. Below Exception there is a distinct subclass RunTimeExcpetion - RunTimeExcpetion and its descendants denote the exceptional CONDITIONS that are external to the application, and the application usually cannot anticipate or recover from them. Throwable class is the super class of all the exception types. Below Throwable class there are two subclasses which denotes two distinct branches of exceptions - Examples of error are StackOverflowError, OutOfMemoryError etc. Below Exception there is a distinct subclass RunTimeExcpetion - RunTimeExcpetion and its descendants denote the exceptional conditions that are external to the application, and the application usually cannot anticipate or recover from them. |
|