What is serialization in Java?

Shobhit Rajput
Shobhit Rajput

Posted On: Apr 08, 2020

 

Serialization appears to be a device of changing the nature of an item within a byte current. Object serialization implies a method utilized to change the nature of an item into a byte stream, that may be continued into file or disk or transmitted over the chain to any other operating Java pragmatic machine. Also, to move the state of an object across a chain or to persist or save the nature of an item serialization is necessary.

Moreover, Serialization has no method and data member. It is mainly used to mark the Java classes so the object used in these classes gets its capabilities. Therefore, Serialization must always be implemented for whose object of the class you want to persist.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions