Error handling in Java using exceptions
How to use try-catch blocks to handle exceptions
How to use finally blocks to clean up resources
The difference between checked and unchecked exceptions
How to create a new exception type and use it
How to use auto-closeable resources using a try-catch-resources block
How to access the stack frames of a thread
How to get the class name of the caller of a method
13. Exception Handling
Get Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 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.