CSC300: Equals Operator and Equals Method [3/23] |
In Java, ==
checks object identity
on object types
Unlike other languages (such as C++) this behavior cannot be changed.
Objects all have an equals
method.
equals
varies from class to class.
==
The java.util.Objects class provides some handy
utilities, like Objects.equals
Navigate > Open Declaration