Solved

To Compare Two Objects in a Class, __________

Question 51

Multiple Choice

To compare two objects in a class, __________.


A) use the == operator (for example, object1 == object2)
B) write a method to do a byte-by-byte compare of the two objects
C) write an equals method that will make a field by field compare of the two objects
D) This cannot be done since objects consist of several fields.

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents