Why Entry interface defines methods like equals and hashCode?

Viewed 189

I saw that interface java.util.Map.Entry has methods:

boolean equals(Object o);
int hashCode();

Why are above methods a part of Entry interface when same methods are inherited from the Object class?

Thanks and Regards, Rahul

4 Answers
Related