@backstreetbrogrammer -------------------------------------------------------------------------------- Chapter 17 - Java Serialization using Externalizable - Code Demo 1 -------------------------------------------------------------------------------- If we want to fully control serialization and override JVM default serialization process, we can implement the Externalizable interface and override its methods writeExternal() and readExternal(). Using Externalizable, complete serialization/deserialization logic becomes developer's responsibility. We need to tell what to serialize using writeExternal() method and what to deserialize using readExternal(). With implementation of writeExternal() and readExternal(), methods writeObject() and readObject() becomes redundant and do not get called. We can even serialize/deserialize static and transient variables, although it will be a bad practice to do so. When an Externalizable object is reconstructed, the object is
Hide player controls
Hide resume playing