Loading...
Loading...
Section 09 · Stage 3: Master Java
Read and write files with java.nio, handle resources safely and design error handling that real applications can rely on.
Go past try and catch: the full exception hierarchy, chaining causes and reading complex stack traces.
Close files and other resources correctly every time, even when things fail.
Work with file paths and folders using Path and the Files class.
Read and write text files, small and large, with the right method for each.
The classic java.io stream classes and how bytes and characters differ.
Turn text files into objects and back, and deal with messy real data.
Save objects as bytes with Java serialization and learn why it is rarely the first choice today.
Decide what to throw, where to catch and what to tell the user, so errors are clear and nothing is silently lost.
Small programs that read, process and write real files with careful error handling.
These sections are ready to study now.