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...

In Word, you can put graphics in a Text box

Indicate whether the statement is true or false

Computer Science & Information Technology

How can you select multiple thumbnail images in the Media Browser?

What will be an ideal response?

Computer Science & Information Technology

In historical terms, ____ history means deliberately hiding parts of the historical record that you think are unfavorable.

a. eliding b. airbrushing c. uncovering d. sourcing

Computer Science & Information Technology

Although NSFNET offered connectivity to academic researches, it was much slower than the newer CSNET.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology