List few differences between Serializable and Externalizable in Java.
Serializable
Externalizable
Serializable has its own default serialization process, we just need to implement Serializable interface. We can customize default serialization process by defining following methods in our class, readObject() and writeObject().
Note: We are not overriding these methods, we are defining them in our class.
Override writeExternal() and readExternal() for serialization process to happen when implementing Externalizable interface.
This is a marker interface, does not have any methods.
This has 2 methods readExternal and writeExternal, hence it is not a marker interface.