What is the difference between Serializalble and Externalizable interface? How can you control over the serialization process i.e. how can you customi - JAVA Interview Questions

What is the difference between Serializalble and Externalizable interface? How can you control over the serialization process i.e. how can you customi


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. This interface contains two methods namely readExternal and writeExternal. You should implement these methods and write the logic for customizing the serialization process.


Click Here to See Answer .....
Did you like this article ?
Subscribe to my RSS feed and get more JAVA Question, and Guideline, Plus a lot more great advice to help your Software Career.

0 comments:

Related JAVA Questions Posts