Last Updated: June 6, 2026
Path and Files are the two types used for file work in modern Java. Path is an abstract pathname that replaces the older File class. Files is a static utility class that does almost every common file operation in one method call: read a whole file into a string, write a list of lines, copy, move, delete, walk a directory tree. This lesson covers how to build a Path, what it exposes, and the parts of the Files API used day to day.