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 until it is caught by another try block
- catch (IOException exception) block
- exception contains reference to the exception object that was thrown
- catch clause can analyze object to find out more details
- exception.printStackTrace(): printout of chain of method calls that lead to exception