Using == vs the equals() Method in Java
The == operator is used to compare the identities of reference data types (not the contents of primitive data types). It basically checks if the references point to the same object. Even if the actual values in those two objects...