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
Q4: Static methods can only operate on _
Q6: If object1 and object2 are objects of
Q7: In Java, it is possible to write
Q9: When a field is declared static, there
Q10: Java automatically stores this value in all
Q13: If the following is from the method
Q14: When a method's return type is a
Q16: Which of the following is NOT true
Q25: You cannot use the == operator to
Q38: An object's _ is simply the data
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents