Java
Difference between equals() Method and == in Java
In this post, we are going to look at the difference between the equals method and == in Java equals() method can do a deep comparison, whereas == operator does a shallow comparison. What are the differences? == operator compares the memory location of the objects, whereas the equals() method Read more…