Java - Interview Questions and Answers on Externalizable Interface

Q1.  What is an Externalizable interface ?

Ans. Externalizable interface is used to write the state of an object into a byte stream in compressed format. It contains two methods readExternal and writeExternal. These methods give you a control over the serialization mechanism.

Q2.  Difference between serializable and externalizable interface ?

Ans. Serializable is a marker interface whereas externalizable  is not.

Q3. Externalizable is a / an ...

 a.Abstract Class
 b.Concrete Class


Q4. Name few classes that implement Externalizable interface?

Ans.[MimeType, ActivationDataFlavor]