Back to Java

File I/O & NIO.2

Read from and write to files using classic I/O streams and the modern NIO.2 API.

2 weeks

Topics in this Chapter

1

Streams, Readers/Writers

Work with byte streams (InputStream, OutputStream) and character streams (Reader, Writer).

2

Path and Files

Use the modern NIO.2 API for more robust and efficient file system operations.

3

Serialization

Convert objects into a byte stream to be stored or transmitted.

GeekDost - Roadmaps & Snippets for Developers