Solved

To Compare Two Objects in a Class

Question 45

Multiple Choice

To compare two objects in a class:


A) use the == operator, e.g. 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) Since objects consist of several fields, you cannot compare them

Correct Answer:

verifed

Verified

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

Related Questions