Thursday, February 12, 2009

When you serialize an object, what happens to the object references included in the object

Question :When you serialize an object, what happens to the object references included in the object?
Answer :The serialization mechanism generates an object graph for serialization. Thus it determines whether the included object references are serializable or not. This is a recursive process. Thus when an object is serialized, all the included objects are also serialized alongwith the original obect.

No comments: