This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes hashcode() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "hashcode()" Watch "hashcode()" New topic


Anitha Srinivasan
Ranch Hand

Joined: Nov 07, 2006
Posts: 53
what is hashcode() and when it is used? can someone explain this .i am confused.
Devaka Cooray
ExamLab Creator

Joined: Jul 29, 2008
Posts: 3599

Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Himanshu Gupta
Ranch Hand

Joined: Aug 18, 2008
Posts: 598

What is your confusion?

My Blog SCJP 5 SCWCD 5
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 449

Anitha Srinivasan wrote:what is hashcode() and when it is used?

This article from Martin Odersky will tell you the use of hashcode elaborately
tushar panda
Ranch Hand

Joined: Feb 16, 2009
Posts: 133
If you have got a K & B book , read it , there it is given in extremely simple language

Do Right , Fear No Man
I agree. Here's the link:
subject: hashcode()
It's not a secret anymore!