1.

What Is The Hashcode() Method?

Answer»

hashCode() METHOD is present in the java.lang.Object class. This method is used to GET a unique integer value for a given object. We can see it's USE with hash based collections like HASHTABLE or HashMap where hashCode() is used to find the correct bucket LOCATION where the particular (key, value) pair is stored.

hashCode() method is present in the java.lang.Object class. This method is used to get a unique integer value for a given object. We can see it's use with hash based collections like HashTable or HashMap where hashCode() is used to find the correct bucket location where the particular (key, value) pair is stored.



Discussion

No Comment Found