What are uses of Hash Code?
Answers were Sorted based on User's Feedback
Answer / suraj kumar
1. When equals() method is invoked on java objects to check
their equality, then the hash code of objects are checked. The
two objects having same hash code are equal.
2. The objects having distinct hash code in HashTable
increases the performance of HashTable. Hence, the objects
should be checked its distinct hash code before storing into
HashTable.
Is This Answer Correct ? | 16 Yes | 2 No |
can we access the super class method using subclass object?
What are structs in java?
What are java packages? What's the significance of packages?
Difference between hashCode() & equals()?
What is the use of using enum to declare a constant?
Describe the various concepts related to object oriented programming (oop).
what are the differences between java and .net?..why u choose java?
What is the use of optional ?
What is string pool in java?
Explain scope or life time of local variables in java?
What is meant by the value of a variable?
What are recursive functions?