Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Hashcode and Equals() method?

 
cool rishi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somone please explain me the difference between hashcode and equals()......
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First match on google...

http://www.geocities.com/technofundo/tech/java/equalhash.html
 
Campbell Ritchie
Sheriff
Pie
Posts: 49411
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch

Please read the important administrative private message which I shall send in a few minutes.

CR
 
Muhammad Khojaye
Ranch Hand
Posts: 449
IntelliJ IDE Java Scala
 
Campbell Ritchie
Sheriff
Pie
Posts: 49411
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best web resource about equals() is probably Angelika Langer's.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic