Read from and write to files using classic I/O streams and the modern NIO.2 API.
Work with byte streams (InputStream, OutputStream) and character streams (Reader, Writer).
Use the modern NIO.2 API for more robust and efficient file system operations.
Convert objects into a byte stream to be stored or transmitted.