Is == the same as .equal in Java?

In simple words, == checks if both objects point to the same memory location whereas . equals() evaluates to the comparison of values in the objects .23 Şub 2022

Sizin İçin Seçtik  How can we compare two strings give an example?

Leave a Reply

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