WHAT IS THE DIFFERENCE BETWEEN SERIALIZALBLE AND EXTERNALIZABLE INTERFACE?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java 
 571  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is the difference between Serializalble and Externalizable interface?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!