Skip to main content\(
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
Chapter 10 Exceptions: When Things Go Wrong
After studying this chapter, you will:
Objectives
-
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.