This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) 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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "what is hashcode" Watch "what is hashcode" New topic
Author

what is hashcode

sankar kandasamy
Greenhorn

Joined: Sep 13, 2007
Posts: 13
I dont know, how the hashcode is calculated for the object?
Can any one help me for this
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13884
    
  10

What exactly do you want to know; how the hashCode() method in class Object calculates hashcodes? You can find the answer to that question in the API documentation of class Object.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Burkhard Hassel
Ranch Hand

Joined: Aug 25, 2006
Posts: 1274
Howdy ranchers,

you cannot tell exactly how the hashCode is calculated. It is a native method so it is performed by the JVM and may be different on every System.

Yours,
Bu.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what is hashcode
 
Similar Threads
Practice Question
need help with the space-time continium
basicjava
hash code
what is hashcode and equals contract?