• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Overriding and Implementation of hashcode()

 
Pranav Bhatt
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone please explain me the concept of overriding of hashCode()? I'am clear with the concept of overriding of equals() method. But am still not clear with the hashCode(), it will help if you could provide me with some examples. And why is it necessary to override hashCode() along with equal().

thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic