What is an Object Serialization?

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.
Significance of "transient" keyword
Significance of transient keyword - The transient keyword is used within the object's member that need not be serialized...
What are inner classes?
What are inner classes? - Class that is nested within a class is called as inner class. The inner class can access private members...
Types of JDBC driver
What are the types of JDBC driver? - Type 1 - JDBC - ODBC bridge...
Post your comment