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

Spyware programs are harmless and should not be uninstalled if detected

Indicate whether the statement is true or false

Computer Science & Information Technology

Selecting a JList item generates ________.

a. an ActionEvent b. a ListItemEvent c. a ListSelectionEvent d. a ListSelectionItemEvent

Computer Science & Information Technology