3.7 Comparing Objects
-
Incorrect
Correct
No Answer was selected
Invalid Answer
Vocabulary
Term | Definition |
---|---|
Aliases | Two object references are considered aliases when they both reference the same object. |
Reference equality | Equality operator (==) compares the references (addresses in memory) of 2 objects |
Logical equality | Compares the data of the objects instead of the value of the references. Uses the .equals() method. |