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
 c.Interface
 d.Package

Ans.Interface

Q4. Name few classes that implement Externalizable interface?

Ans.[MimeType, ActivationDataFlavor]


Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner
comments powered by Disqus