Sunday, October 26, 2014

Get original hash code of a Object after overriding the equals and hash code methods

When we writing programs, there are some which we override the hash code and the equals method of a object in java. But sometimes, when debugging purposes, we always needs to get the original hash code of a object. This is where we can use interesting method to takeout the actual hash code of the object.

System.identityHashCode(object)

No comments:

Post a Comment