What is the advantage of using Externalizable over Serializable?
ยท Externalization allows a class to specify the methods to be used to write the object’s contents to a stream and to read them back. By implementing Externalizable you can win performance at the cost of flexibility and extra code to maintain. If you implement Externalizable you stream the data directly without the need for reflection, which is used in the case of Serializable.