Serializalble and Externalizable Interfaces


What is the difference between Serializalble and Externalizable interface?

✍: FYIcenter


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.

2007-03-03, 5339👍, 0💬