Overriding equals which method consider override too

Overriding equals which method consider override too

Answer : If you overridden equals() method which is available in Ojbect then according to specification you will have to override hashCode() as well.

Leave a Reply

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