when to use serialization in a program or an application?
I have read concepts in serialization but when to use in a real time scenario?
posted 3 years ago
Serialization is the process of persisting an object state in a flat file or sending through network.
Mean converting the java object into bits and bytes, because hard disks or networks understands only these bits and bytes, cannot understand the data in terms of objects
Real time scenarios
Storing the object state in a disk. Object state means instance variable values at particular time.
Sending the object through network (One JVM to another JVM)
Storing the object in database (In Hibernate we can directly send object 'save()' method to insert the values in data base).