equals() is a method of Object class. == should be used during reference comparison . == checks if both references points to same location or not. equals() method should be used for content comparison.
Read moreequals() is a method of Object class. == should be used during reference comparison . == checks if both references points to same location or not. equals() method should be used for content comparison.
Read more