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.
Answer : If you overridden equals() method which is available in Ojbect then according to specification you will have to override hashCode() as well.