Externalizable is an interface which contains two methods readExternal and writeExternal. These methods give you a control over the serialization mechanism.