InterviewSolution
| 1. |
What Is The Difference Between Serializable And Externalizable Interfaces? |
|
Answer» Both interfaces are used for implement SERIALIZATION. But, the basic difference is SERIALIZABLE interface does not have any method (it’s a MARKER interface ) and Externalizable interface having 2 methods such as readExternal() and writeExternal(). Serializable interface is the SUPER interface for Externalizable interface. Both interfaces are used for implement serialization. But, the basic difference is Serializable interface does not have any method (it’s a marker interface ) and Externalizable interface having 2 methods such as readExternal() and writeExternal(). Serializable interface is the super interface for Externalizable interface. |
|