11
Handling Multiple Exceptions
•The code in the try block may be capable of throwing more than one type of exception.
•A separate catch clause needs to be written for each type of exception that could potentially be thrown.
•The JVM will run the first compatible catch clause it finds.
•
Text examples include:  SalesReport.java  and SalesReport2.java
The catch clauses must be listed from most specific to most general.