|
How many objects are there in this program? How many reference variables are there? A good answer might be:There is one object (after the new operator has worked) and there are two reference variables. | |
Picture of One Objects and Two Reference VariablesHere is a picture showing the situation in the new program:
Now when the expression
When two reference variables refer to the same object, the == operator will evaluate to true. | |
QUESTION 15:In the new program, did the == operator look at the contents of the object? Click Here after you have answered the question |