Computer Science 100
Gregory M. Kapfhammer
Details in the Textbook
What could go wrong with software?
Program that divides a variable by zero
What will this program do when executed?
Why is this behavior acceptable?
How to Handle?
Do not handle the exception
Handle the exception where it occurs
Handle the exception somewhere else in the program
What are the trade-offs of these solutions?
Types of exceptions similar and different?
Turn to pages 506 and 507
Valid and invalid (banned) codes
The exceptions are handled with catch blocks!
The Exception Class Hierarchy
See Figure 11.1 on page 513
What is the purpose of the
What happens if a file is not available?
Any questions about exceptions?