16
The Stack Trace
•The call stack is an internal list of all the methods that are currently executing.
•A stack trace is a list of all the methods in the call stack.
•It indicates:
–the method that was executing when an exception occurred and
–all of the methods that were called in order to execute that method.
•
StackTrace.java
All exception objcts have a printStackTrace method inherited from the Throwable class that can be used to print a stack trace.