Solved

Which of the Following Statements About Comparing Objects Is Correct

Question 54

Multiple Choice

Which of the following statements about comparing objects is correct?


A) The equals method is used to compare whether two references are to the same object.
B) The equals method is used to compare whether two objects have the same contents.
C) The == operator is used to compare whether two objects have the same contents.
D) The equals method and the == operator are perform the same actions.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions