SaveMyCert
Log in
2 of 2 free questions left today·for 5 a day
Performing Input and Output Operations Using the Java I/O API

Java NIO.2 Path and Files API: Build, Traverse, Read and Write (1Z0-831)

16 min read1Z0-831 · Performing Input and Output Operations Using the Java I/O APIUpdated

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.

Sign up free to mark lessons complete, bookmark topics and track your exam readiness.

Spotted a mistake in this lesson?