|
What will be the output of this program? A good answer might be:
The two objects contain the same data: java.awt.Point[x=7,y=99] |
Different Objects, Equivalent DataHere is a picture showing the situation. Although there are two objects (each constructed out of different bytes of memory), the equals() method returns true because the data is equivalent.
|
QUESTION 17:
Could the |