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

Q

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

✍: Guest

A

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.

2013-05-22, 1893👍, 0💬