The ObjectInputStream class supports the reading of objects from input streams.
ObjectInputStream is part of JAVA IO classes. It’s purpose is to provide us a way to convert input stream to object in java program. ObjectInputStream constructor take InputStream as argument. Since we are reading serialized object from file, we will be using FileInputStream with our ObjectInputStream to read object from file.
The ObjectInputStream class supports the reading of objects from input streams.
ObjectInputStream is part of JAVA IO classes. It’s purpose is to provide us a way to convert input stream to object in java program. ObjectInputStream constructor take InputStream as argument. Since we are reading serialized object from file, we will be using FileInputStream with our ObjectInputStream to read object from file.