aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Serialization doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Serialization doubt" Watch "Serialization doubt" New topic
Author

Serialization doubt

Faisal Ahmad
Ranch Hand

Joined: Aug 31, 2006
Posts: 355

Ive just read, during deserialization, the serialized object's constructor is not run. A new object is given space on the heap.

Well, without running constructor, how can we create a new object? And what does it really means "given space on the heap"?
Help appreciated! Thanks.
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2367
Originally posted by Faisal Pasha:
Ive just read, during deserialization, the serialized object's constructor is not run. A new object is given space on the heap.

Well, without running constructor, how can we create a new object? And what does it really means "given space on the heap"?
Help appreciated! Thanks.


You don't want to create a new object. You want to read the object that was stored.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serialization doubt