Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is difference between persistence and serialization? [closed]

I have gone through this link but i'm looking for convincing answer. Visit http://www.coderanch.com/t/270170/java-programmer-SCJP/certification/Difference-serialization-persistence

like image 371
Dhruv Kapatel Avatar asked Sep 19 '25 07:09

Dhruv Kapatel


1 Answers

Serialization is the process of converting an object to another representation (often binary, though you can serialize to other forms like xml, but the default java serialization mechanism is to a binary form). You can persist that serialized form of the object for reading in (deserialization) to restore that object. Serialization is also used as a mechanism for sending java objects across processes/machines (e.g. with RMI). Serialization is not persistence but persistence is one way it can be used.

like image 140
Jeff Storey Avatar answered Sep 22 '25 04:09

Jeff Storey