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
What if constructor is protected in java?
Is arraylist dynamic in java?
Can an integer be null java?
What are the three best choices for a development environment?
What is numeric data type?
What is a lock or purpose of locks in java?
Can a class be protected in java?
Why do we need hashmap in java?
What is a java string?
How do you know if a value is nan?
Which command from the jdk compiles a java program?
Using callable statement how can you pass out parameters, explain with example?
What is not object oriented programming?
Which is fastest collection in java?
What are the different types of sorting in java?