Section 11.4 When to Use Exception Handling

• Exception handling processes synchronous errors (p. 451), which occur when a statement executes.

• Exception handling is not designed to process problems associated with asynchronous events (p. 451), which occur in parallel with, and independent of, the program’s flow of control.

Get Java™ How To Program (Early Objects), Tenth Edition 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.