Java, Java, Java
Completion requirements
13. Exceptions: When Things Go Wrong
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
Introduction
Handling Exceptional Conditions
Java’s Exception Hierarchy
Handling Exceptions Within a Program
Error Handling and Robust Program Design
Creating and Throwing Your Own Exceptions
From the Java Library: javax.swing.JOptionPane
Chapter Summary
Solutions to Self-Study Exercises Exercises
459
Exception
Exception handling