Solved

To Compare Two Objects in a Class, __________

Question 12

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