Shanky Sohar wrote:Yes you are right,but the methods are the part of ObjectOutputStream class,we are implementing them just to have a little more control over the serialization or deserilization.These methods are not within the serialization interface.
Please correct me if i am wrong
We are NOT implementing the methods in ObjectOutputStream and ObjectInputStream. Those are different methods, with different signatures.
Method in ObjectOutputStream:
Method in ObjectInputStream:
Optional methods in the object to be serialized:
Not the same methods. Same names, but different arguments, different classes, not inherited, overridden, or overloaded.