What is the difference between == operator and equals () in string wrapper classes?

== is a reference comparison, i.e. both objects point to the same memory location . . equals() evaluates to the comparison of values in the objects .7 Oca 2019

Sizin İçin Seçtik  What is an equals method in Java?

Leave a Reply

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