Lesson 6 of 918 minModule progress 0%

Module 9: Advanced Core Features

Modern I/O with NIO.2

Leverage `Path`, `Files`, and stream-based directory walking.

Use Paths.get or Path.of for platform-agnostic file references.

Files.walk streams directory trees; remember to close the stream or use try-with-resources.

Watch directories with WatchService for near-real-time change events.

Advertisement

Lesson check

Which method streams all lines lazily?

Next lesson →