More about Objects and Classes
17. Different Objects, Equivalent Data
Answer:The two objects contain the same data: java.awt.Point[x=7,y=99]
Different Objects, Equivalent Data
The picture shows the situation. There are two distinct objects (each constructed out of different bytes of memory).
equals() method returns true because the data is equivalent.
==operator do the same as the