01Chapter 1: What Happens When Things Go WrongAn exception is an object that Java creates when something goes wrong while a program runs. Dividing by zero is one example. Reading a file that does not exist is another.1 min read
02Chapter 2: Running Code No Matter What: finallyA finally block is code that runs after a try block, whether the try block succeeded or failed. You use it for cleanup work that must always happen.1 min read
03Chapter 3: AutoCloseable and CloseableA resource is something your program borrows and must give back, like a file or a network connection. Java can return it for you automatically. To make that work, the resource must say how to close itself.2 min read