Using Exceptions

Page contents © by Samuel Marateck 2007

Introduction
When the JVM finds a run-time error in executing a program, it throws an exception. This means it terminates the execution and prints a trace of the contents of the run-time stack. This stack is used to store local variables and addresses of the next statment to be executed when a method is invoked. There are several types of exceptions; but they are all subclasses of Throwable. The two direct subclasses of Throwable are Error and Exception.



Samuel Marateck
SAT Jan 20 22:23:14 EST 2007