Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How equals and hashcode work together (hashing algorithm , hash buckets)  RSS feed

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I know the contract terms between hashcode and equals

but

I got this interview question

"How equals and hashcode work together" ? why do we need overwrite hashcode?

When does hashing algorithm , hash buckets will come into picture.


I really appreciate , Many thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!