Extends the InputStream abstract class.
Can be used to read objects that were written by ObjectOutputStream.
Files can be transferred through networks.
ObjectInputStream decodes Java objects read from files using the class name and object values (deserialization).
All data coming from instances of classes which implement the Serializable interface can be processed.
The decoded objects can be processed following types normally. For custom classes, casting is necessary, see below.
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 READING DATA: