What are uses of Hash Code?

Answers were Sorted based on User's Feedback



What are uses of Hash Code?..

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

What are uses of Hash Code?..

Answer / guest

memory location

Is This Answer Correct ?    6 Yes 9 No

Post New Answer

More Core Java Interview Questions

can we access the super class method using subclass object?

4 Answers  


What are structs in java?

0 Answers  


What are java packages? What's the significance of packages?

0 Answers  


Difference between hashCode() & equals()?

3 Answers   HCL,


What is the use of using enum to declare a constant?

0 Answers   Fidelity,






Describe the various concepts related to object oriented programming (oop).

0 Answers  


what are the differences between java and .net?..why u choose java?

1 Answers  


What is the use of optional ?

0 Answers  


What is string pool in java?

0 Answers  


Explain scope or life time of local variables in java?

0 Answers  


What is meant by the value of a variable?

0 Answers  


What are recursive functions?

0 Answers  


Categories