Chapter 1. Streams and Files

In this chapter, we will cover the Java Application Programming Interfaces (APIs) for input and output. You will learn how to access files and directories and how to read and write data in binary and text format. This chapter also shows you the object serialization mechanism that lets you store objects as easily as you can store text or numeric data. Next, we will turn to several improvements that were made in the “new I/O” package java.nio, introduced in Java SE 1.4, and the “new new I/O” enhancements of Java 7. We ...

Get Core Java, Volume II--Advanced Features, 9th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.