// Purpose: Test user-defined exceptions

// source: http://java.sun.com/docs/books/jls/second_edition/html/exceptions.doc.html

 

A.    Source files:

Test.java  

B.    Running the application using JDK: