Tarun Oohri wrote:
Why the output coming is different ie.
com.B@10385c1
com.B@1632c2d
Both the objects are suppose to come out same.
Tarun Oohri wrote:I am still not able to tell, SCJP book says on page 459 "serialization save the object & all of its instance variables."
If i am saving an object in a file and extracting it , all i want that both the objects should be same
....here what i am not getting....overriding toString() will just return same String to all the objects of that class, which certainly do not answers my question.