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 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.