Java Externalizable interface for custom serialization

The Externalizable interface in Java is a marker interface that allows for custom serialization of an object. Classes that implement Externalizable must provide a public no-arg constructor and implement the readExternal and writeExternal methods. The writeExternal method is used to write the object’s state to an ObjectOutputStream the readExternal method is used to read the … Continue reading Java Externalizable interface for custom serialization