posted 17 years ago
We implement readObject(ObjectInputStream)/writeObject(ObjectOutputStream) in a class implementing Serializable interface to customize the serialization process. Now my question is:
1) Why are we supposed to provide implementation of these methods, when the Serializable interface is a marker interface. Where these methods come from ? Why the method signature should be like this.
2) When should we use serialization and Externalizable interface, when the customization of serialization can be achieved by either of them.
Regards,
Ruchika