Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question on serialization

 
caushik conjetty sekhar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
    BhargavS
     
    priya uma
    Greenhorn
    Posts: 4
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    hi thanks for your information
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic