What is one difference between the == operator and the equals object method?

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

Sizin İçin Seçtik  What is the difference between () and == in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *