Advanced Java Tutorial

Total available pages count: 55
Subject - Java Technologies


Java provides methodology, known as object serialization where objects represented as series of bytes that include the object’s data about object type & types of data stored in an object.

It is a mechanism for writing the state of an object into a byte stream. Majorly used in RML, Hibernate, EJB, JPA & JMS technologies.

The reverse operation of serialization is known as deserialization in which a byte stream converted into an object. Both processes are platform-independent, it can serialize objects in platforms & deserialize on a different platform. To serializing an object, the implementation of a serializable interface is required.


Serializing the object ,we used to call method writeObject() , known as ObjectOutputStream.


Deserialization of the object, we used to call method readObject(),known as ObjectInputStream.