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:

Verified
Correct Answer:
Verified
Related Questions
Q5: The names of the enum constants in
Q14: If you write a toString method for
Q30: If a class has a method named
Q40: Assume the class BankAccount has been created,
Q41: Which of the following is NOT true
Q43: If you have defined a class named
Q46: If object1 and object2 are objects of
Q47: The whole-part relationship created by object aggregation
Q50: An object's _ is simply the data
Q50: When a method's return type is a