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.

c. write an equals method that will make a field by field compare of the two objects

Computer Science & Information Technology

You might also like to view...

Describe the three audio file formats currently supported by the browsers that support HTML5.

What will be an ideal response?

Computer Science & Information Technology

The hexadecimal number system is based on ____.

A. 5 B. 6 C. 10 D. 16

Computer Science & Information Technology