What is Externalizable?

Externalizable interface is used to write the state of an object into a byte stream in compressed format.It is not a marker interface.

It is an interface that extends Serializable. It is having two different methods writeExternal() and readExternal. This interface allows us to customize the output.