Runtime type of the o1 is Stone that is Serializable; Allright! No NonSerializable class exception at runtime!!!
Joined: Apr 12, 2007
Thanks for your explanation. In your 2nd explanation the Stone class is marked as Serializable, its ok. Then what about 1st?, array(Object) is also implemented Serializable interfece? I think, then only i can able to assign the object reference to Serializable reference. am i correct? please clarify?