// Purpose: Test exceptions and Stack unwinding (using getStackTrace( ) and the StackTraceElement class)

// source: Fig. 11.5 from Deitel & Deitel, Java How to Program, 9e.

 

A.    Source files:

UsingExceptions.java  

B.    Running the application using JDK: