In the previous section, we learned how to use custom exceptions. We also created a custom exception by subclassing java.lang.Exception. Let us now understand the Java exception hierarchy in greater detail.
Play the audio to listen to an explanation of the java Exception class hierarchy.
The video below shows how the JVM can throw an Error for an irrecoverable problem. Click on the 'Start' button to start playing the movie.
The video below explains runtime exceptions. Click on the 'Start' button to start playing the movie.