A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
I/O and Streams
Is Serialization like taking a picture of memory cells content?
Joined: Aug 22, 2006
Sep 18, 2006 11:49:00
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?
author and iconoclast
Joined: Jul 08, 2003
Sep 18, 2006 12:08:00
Not at all. The serialization data format is
a dump of the heap. You can learn about the format
[Jess in Action]
Joined: Nov 29, 2005
Sep 19, 2006 01:34:00
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.
I agree. Here's the link:
subject: Is Serialization like taking a picture of memory cells content?
read binary file with header
Ho to display image getting from byte array in JSP ?
How to upload a file through Hibernate(BLOB)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014