Extends the OutputStream abstract class.
Can be used to write objects that can be read by ObjectInputStream.
Encodes Java objects using the class name and object values (serialization).
All instances of classes which implement the Serializable interface can be processed.
The encoded objects will be written into files. Files can be transferred through networks.
Reading from the stream must follow the order of writing to stream (FIFO).
Due to having slightly different structure, all methods are described here.
EXAMPLE FOR WRITING DATA: