Which of the following statements about comparing objects is correct? The purpose of the equals method is to compare whether two references are to the same object. The purpose of the , equals, method is to compare whether two references are to the same object. The purpose of the equals method is to compare whether two objects have the same contents. The purpose of the , equals, method is to compare whether two objects have the same contents. The == operator is used to compare whether two objects have the same contents. The , ==, operator is used to compare whether two objects have the same contents. For objects other than Object, the equals method and the == operator always perform the same actions. For objects other than , Object, , the , equals, method and the , ==, operator always perform the same actions.

Q&A Education