Serializable vs Externizable
Serialization vs Externalization Serializable Externizable Serializable is a marker interface (an interface with no methods) Unlike Serializable, Externizable is a standard interface with two methods defined to be implemented by the implementing class. Serailization is a recursive process, all non-transient variables and super classes in the object hierarchy will be serialized causing an unnecessary overhead User defines what should be serialized and what should not. Hence it is more optimized. Should be preferred for "Fat Objects" Serialization uses reflection mechanism for marshalling and un marshalling the objects. Marshalling/Unmarshalling process is user defined. During de-serialization no constructor is called, hence initialization done in constructor will be skipped. During de-serialization default constructor is invoked A default construtor defini...