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 ...