25 - Java Serialization with Object graphs - Code Demo

@backstreetbrogrammer -------------------------------------------------------------------------------- Chapter 11 - Serialization with Object graphs -------------------------------------------------------------------------------- Java’s default serialization process is fully recursive, so whenever we try to serialize one object, the serialization process try to serialize all the fields (primitive and reference) with our class (except static and transient fields). The reference to objects fields are serialized and Java serialization takes care of saving that object’s entire “object graph”. That means a deep copy of everything the saved objects needs to be stored. Just remember to implement the Serializable interface for all the objects in the “object graph” - otherwise we will get NotSerializableException. - Java Serialization Playlist: - Java Serialization Github:
Back to Top