The == operator tests whether two variables have the same references (aka pointer to a memory address). Whereas the equals() method tests whether two variables refer to objects that have the same state (values) .7 Oca 2019
The == operator tests whether two variables have the same references (aka pointer to a memory address). Whereas the equals() method tests whether two variables refer to objects that have the same state (values) .7 Oca 2019