H. Exception Handling: A Deeper Look

Objectives

In this appendix you’ll:

Image Learn what exceptions are and how they’re handled.

Image Understand when to use exception handling.

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

Image throw exceptions to indicate a problem.

Use catch blocks to specify exception handlers.

Use the finally block to release ...

Get Android™ How to Program, Second 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.