What is an Object Serialization? It is the process of writing the contents of an object to a file and vice-versa.
Serialization is a process of conversion of an object into a series of bytes so that object can be stored or transmitted easily across the network. The reverse process is called deserialization. There is also a way to prevent some data from being serialized by marking the attribute as transient.
Serialization is helpful to the developers when they want to send an object to a remote application.
For an object to be serializable, its class needs to implement java.io.Serializable interface.
Serialization is used extensively in Hibernate, RMI, JPA, EJB and JMS technologies.
|