OBJECTIVES
After studying this chapter, you will
Understand Java's exception-handling mechanisms.
Be able to use the Java try/catch statement.
Know how to design effective exception handlers.
Appreciate the importance of exception handling in program design.
Be able to design your own Exception subclasses.
OUTLINE
10.1
Introduction
10.2
Handling Exceptional Conditions
10.3
Java's Exception Hierarchy
10.4
Handling Exceptions within a Program
10.5
Error Handling and Robust Program Design
10.6
Creating and Throwing Your Own Exceptions
10.7
From the Java Library: javax.swing.JOptionPane
Chapter Summary
Solutions to Self-Study Exercises
Exercises