What is the difference between equals vs ==?

Second difference between equals and == operator is that == is used to check a reference or memory address of the objects whether they point to the same location or not, and the equals() method is used to compare the contents of the object e.g. in case of comparing String its characters, in case of Integer it’s their …

Sizin İçin Seçtik  What is string equal?

Leave a Reply

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