Skip to main content

All Questions

2votes
1answer
2kviews

If I am using just HashMap can I override only hashCode method?

If I need to use only HashMap, why do I need to override equals() method along with hashCode()? How will not implementing equals() affect the working of HashMap?
karan ratnaparkhi's user avatar

close