dcsimg

How can you get the hash code for an instance of a class if the class overrode hashCode()?

John Zukowski

The System class method identityHashCode() allows you to get this information:

int code = System.identityHashCode(anObject);