Java Interview Questions
What is hash code and how can you find the hash code of an object?
Hash code is a unique identification number allotted to the objects by JVM. This hash code number is also called reference number which is created based on the location of the object in memory, and is unique for all objects except String objects.
The hashCode() method of ‘Object’ class in java.lang package is useful to find the hash code of an object.