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
Do we need to manually write Copy Constructor?
What is data string?
Can size_t be negative?
What is a method signature java?
What is a method declaration?
how does the run() method in runnable work? : Java thread
What is the final keyword denotes?
What is meant by javabeans?
What is meant by class loader? How many types are there? When will we use them?
How do you create a sop?
What does isempty () do in java?
What is the range of a character variable?
What are the differences between heap and stack memory in java?
Is a case study a method or methodology?
What language is pass by reference?