DEVFYI - Developer Resource - FYI

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

Java Interview Questions and Answers (part 3)


(Continued from previous question...)

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

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.

(Continued on next question...)

Other Interview Questions