• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Serialization like taking a picture of memory cells content?

 
Majid Al-Fifi
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

By saving an object to a file and looking to binary data in that file, it seems like it is the same as the data in the heap.

can I say that data in this file is a copy of the binary data representing my objects and relationships between them in the memory?

to what extent am I right?

Thanks,
Majid
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not at all. The serialization data format is not a dump of the heap. You can learn about the format here.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Serialization doesnot copy the object byte by byte from heap to file.Rather it copies enough information from the object that would be required to reconstruct the object again from the file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic