Java NIO.2 Path and Files API: Build, Traverse, Read and Write (1Z0-831)
The java.nio.file API (NIO.2) is Java's modern file-system API: a Path is an immutable description of a location, and the static methods of the Files class create, read, write, copy, move, delete, traverse and inspect the files those Paths name. Oracle 1Z0-831 objective 9.3 asks you to construct, traverse, create, read and write Path objects and their properties, and to predict exactly what a program using them prints or throws. This lesson separates the purely syntactic Path operations (name elements, resolve, relativize, normalize) from the Files operations that touch the disk, and covers each method's exceptions, open and copy options, directory traversal and file attributes.
You’ve read your 2 free 1Z0-831 lessons
Sign up free to read 48 more lessons — your progress is saved.
Source
This lesson covers the "Performing Input and Output Operations Using the Java I/O API" domain of the official 1Z0-831 exam guide. Vendors revise their guides — check the source for the current version.
- Java SE 25 Developer Professional (1Z0-831) exam page and topics — Oracle University
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.