Question: Which of the following statements about comparing objects is correct? For objects other than the method and the operator always perform the same actions. The
Which of the following statements about comparing objects is correct?
For objects other than
the
method and the
operator always perform the
same actions.
The
operator is used to compare whether two objects have the same contents.
The purpose of the
method is to compare whether two references are to the same object.
The purpose of the
method is to compare whether two objects have the same contents.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
