Reddy Ramakrishna <[EMAIL PROTECTED]> writes:
> 
> Can somebody explain me how japhar generates hashcode in java.lang.Object ?
> I would like to know the algorithm and where in japhar code I can find
> the implementation.

java.lang.Object simply returns the address of the object, cast to a
32 bit int.

this may involve truncating, but that isn't a problem, since it
doesn't matter if two objects have the same hashcode -- just that one
object always return the same hashcode.

xtoph

Reply via email to