What is Hash Code in Java?

Answer Posted / sheetal sikarwar

hash code is integer value that is return by JVM. when we
compare object by equals() method then this will return
hash code value of object. if this value is same that means
object's memory location is same. that meand object is same.
when we are saving object in HashSet, HashMap and HashTable
then this object will save by Dictonary class. this
Dictonary class is Abstact class that save object with hash
code value.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is an integer an object?

698


What is number data type in java?

759


What is udp in java?

716


what is the final keyword denotes in java?

769


What all methods are used to prevent thread execution ?

729






Is .net better than java?

752


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

810


What is api data?

741


What is the use of toarray () in java?

750


What is classname class in java?

737


What class of exceptions are generated by the java run-time system?

860


what is anonymous class in java?

734


What is the do while loop syntax?

742


What is the difference between C++ and Java and your preferences?

817


Differentiate between stringbuffer and string?

776