• Register

Share:- Whatsapp Facebook Facebook

------------------------------------- Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.


0 votes
What is serialization in java? Or what do you mean by java serialization?
in Java by

1 Answer

0 votes

Serialization: Serialization is a process through which we can save or transfer the state of objects by converting it into a byte stream. In java, if you want to implement Serialiazable in your class to implement Serializable interface. Serializable is a marker interface which needs to be implemented for transferring an object over a network or persistence of its state to a file. A marker interface does not contain any methods. Implementation of this interface enables the conversion of object into byte stream and thus can be transferred. The object conversion is done by the JVM to use default serialization mechanism.


Serialization is the process through which converting an object into a bytes stream. That stream can be sent through a socket, stored to a file and/or database or simply manipulated.