This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Java in General and the fly likes What is hashCode? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

What is hashCode?

Hemant Agarwal
Ranch Hand

Joined: Nov 21, 2005
Posts: 138
What is hashCode?
What is the difference between hashCode and equals methods. What is the need for of them? Where to use them?

David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Please see the recent conversation.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Rather than move this to JiG (beginner), where it belongs, I'm just going to close it in deference to the linked-to thread.

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: What is hashCode?
It's not a secret anymore!