The Wayback Machine - https://web.archive.org/web/20260301060019/https://www.geeksforgeeks.org/java/java-io-packag/

Java.io Package in Java

Last Updated : 23 Jul, 2025

Java.io Package in Java

This package provides for system input and output through data streams, serialization and the file system. Unless otherwise noted, passing a null argument to a constructor or method in any class or interface in this package will cause a NullPointerException to be thrown.

Following are the important classes in Java.io package:

Comment