Thursday, February 22, 2007

Understanding the Java Exception heirarchy

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.
















Understanding java.lang.error

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.












Understanding RuntimeException

The video below explains runtime exceptions. Click on the 'Start' button to start playing the movie.






No comments: