previous |
start |
next
Catching Exceptions
- Statements in try block are executed
- If no exceptions occur, catch clauses are skipped
- If exception of matching type occurs, execution jumps to
catch clause
- If exception of another type occurs, it is thrown to the
calling method
- If main doesn't catch an exception, the program
terminates with a stack trace
previous |
start |
next