When used with objects, what is the equality ( == ) operator really comparing?

What will be an ideal response?


The == operator does not check that the objects have the same values for instance variables. It checks for equality of memory address, so two objects in two different locations in memory would test as being “not equal” when compared using ==, even if their instance variables contain equivalent data.

Computer Science & Information Technology

You might also like to view...

Some file properties can be user-modified with customized tags that describe and categorize files.

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

Computer Science & Information Technology

Keyword _________ specifies that an object or variable is not modifiable.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The __________ ___________ provides DC voltage to various parts of a computer

Fill in the blank(s) with correct word

Computer Science & Information Technology

Rollover images are often used to help create a feeling of action and excitement on a web page.

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

Computer Science & Information Technology