This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hashCode()

 
mike molin
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
can some explain what hashCode() is for me, how it works when to use it and why, and maybe give me and example. why not use equals instead
/Kiades
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mike molin wrote:Hi
can some explain what hashCode() is for me, how it works when to use it and why, and maybe give me and example. why not use equals instead
/Kiades

What the hashcode contract says about?
Also check out http://java.dzone.com/articles/java-hashing. Let us know, if there is any query.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic