11. Exception Handling: A Deeper Look

Objectives

In this chapter you’ll:

Image Learn why exception handling is an effective mechanism for responding to runtime problems.

Image Use try blocks to delimit code in which exceptions might occur.

Image Use throw to indicate a problem.

Image Use catch blocks to specify exception handlers.

Learn when to use exception handling. ...

Get Java® 9 for Programmers, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.