Harikrishna Gorrepati wrote:
Can we assume that this class is correctly serialized and de-serialized properly even though
there is no defaultReadObject() method implemented ??
I'm not sure whether there are rules for serializing and de-serializing objects, but the given code serializes all the instance variables of the object.
Write and read the object as follows:
The object read displays the serialized values of instance variables.