Home > DeveloperSection > Interviews > What is the difference between Serializalble and Externalizable interface?

Posted on    May-01-2015 12:24 AM

 Java Java 
 1 Answer(s)
  523  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    May-01-2015 12:24 AM

Serializable is a marker interface but Externalizable is not a marker interface.When you use Serializable interface, your class is serialized automatically by default. But you can override writeObject() and readObject() two methods to control more complex object serailization process. When you use Externalizable interface, you have a complete control over your class's serialization process.

Don't want to miss updates? Please click the below button!

Follow MindStick