Question: Which of the following statements about comparing objects is correct? The equals method is used to compare whether two objects have the same contents. The
Which of the following statements about comparing objects is correct?
The equals method is used to compare whether two objects have the same contents.
The equals method is used to compare whether two references are to the same object.
The equals method and the operator are perform the same actions.
The operator is used 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
