Chapter 5: Java Exception Handling
Handling runtime errors robustly: the exception hierarchy, checked vs. unchecked exceptions, try/catch/throws, and writing custom exceptions.
10 Topics
- 5.1 Why Exceptions
- 5.2 Standard Exception Handling Options
- 5.3 Exception Class Hierarchy
- 5.4 Checked vs. Unchecked Exceptions
- 5.5 Catching an Exception: try and catch blocks
- 5.6 Methods Which Throw Exceptions: the throws clause
- 5.7 Handling vs. Declaring Exceptions
- 5.8 System Exceptions vs. Application Exceptions
- 5.9 Writing Custom Exceptions
- 5.10 Code Examples & Exercises