The moose likes Java in General and the fly likes question  on  serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "question  on  serialization" Watch "question  on  serialization" New topic

question on serialization

caushik conjetty sekhar

Joined: Mar 03, 2009
Posts: 4
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?
SbhargavS Surimenu

Joined: Mar 09, 2010
Posts: 4
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).

  • Regards,
    priya uma

    Joined: Aug 10, 2012
    Posts: 4
    hi thanks for your information
    I agree. Here's the link:
    subject: question on serialization
    It's not a secret anymore!