O'Reilly logo

Java™: A Beginner's Tutorial, Second Edition by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Input Output

Input output (IO) is one of the most common operations performed by a computer program. Examples of IO operations are.

  • Create and delete files

  • Read from and write to a file or network socket.

  • Serialize (or save) objects to persistent storage and retrieve saved objects.

Java provides the java.io package that contains types you can use to perform IO operations. Many failed IO operations may throw a java.io.IOException. They may also throw a java.lang.SecurityException if the failure is related to the lack of permission to perform a certain function.

Learning Java IO programming by iterating the members of java.io may not be the best approach, considering there are 12 interfaces, 50 classes, plus 16 exception classes. This chapter ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required