File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 24195

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!