The equals method found in java.lang.object. It is use to check state(data) of object not identifying the location in Memory of the object. It return the Boolean value.
In other way it compare content of object. where as the "==" operator check instance of object are same or not.
Difference between == and equals method in java
Posted on: July 5, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles