public native int hashCode ()

Overriding: java.lang.Object

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the Java™ programming language.)

Returns:  a hash code value for this object.

See also:
java.lang.Object.equals(java.lang.Object), java.lang.System.identityHashCode