Monday 14 November 2016

Working with ObjectInputStream



 ObjectInputStream class extends the InputStream class and implements the ObjectInput interface (The ObjectInputinterface extends the DataInputinterface and supports object Serialization).
 It is responsible for reading object from a stream.
 A constructor used by ObjectInputStream is:
ObjectInputStream (InputStreaminStream) throws IOException
Here, inStream is aninput stream from which serialized objects should be read.
Some commonly used methods defined by ObjectInputStream is:

No comments:
Write comments