What class allows you to read objects directly from a stream? Briefly Explain.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.
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.