In this lecture, we examine how Java performs deep serialization of an object graph: what happens to reference fields, why all nested objects must implement
Serializable, how to avoid
NotSerializableException, and in which cases the
transient modifier helps. With examples, we will show serialization/deserialization of objects with nesting, collections, and cyclic references, and we will also break down common mistakes related to
serialVersionUID and large object graphs.