1.

Which Method Is Used During Serialization And Deserialization Process In Java?

Answer»

JAVA Serialization is done by java.io.ObjectOutputStream class, a FILTER stream which is wrapped around a lower-level byte stream to handle the serialization mechanism. To store any object via serialization mechanism we call ObjectOutputStream.writeObject(saveThisobject) and to DESERIALIZE that object we call ObjectInputStream.readObject() method.

Java Serialization is done by java.io.ObjectOutputStream class, a filter stream which is wrapped around a lower-level byte stream to handle the serialization mechanism. To store any object via serialization mechanism we call ObjectOutputStream.writeObject(saveThisobject) and to deserialize that object we call ObjectInputStream.readObject() method.



Discussion

No Comment Found