11. Exception Handling: A Deeper Look
In this chapter you’ll:
Learn why exception handling is an effective mechanism for responding to runtime problems.
Use try
blocks to delimit code in which exceptions might occur.
Use throw
to indicate a problem.
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.