Specifically when they're used with a moving garbage collectors. The current memory location of the object can't be used because it can change at the next collection, so what is used as the objects hash?
Hope this question helps: How does the JVM ensure that System.identityHashCode() will never change?
Also http://xiao-feng.blogspot.com/2007/04/object-hashcode-implementation.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With