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

What do you mean by inner class in java? Explain

0 Answers  


What is the use of isempty in java?

0 Answers  


Which list is sorted in java?

0 Answers  


what is the use of thread?Justify it by project point of view

7 Answers  


How will you communicate between two applets?

0 Answers  






What is tree node in java?

0 Answers  


What is a J2EE component? List out all the component?

2 Answers   Adobe,


Is there any difference between nested classes and inner classes?

0 Answers  


What are the advantages and disadvantages of object cloning?

0 Answers  


what is the difference between process and thread? : Java thread

0 Answers  


What is the maximum size of array in java?

0 Answers  


Have you used any version control ? if so explain about it?

2 Answers  


Categories