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 is * argv?

0 Answers  


how to handle exceptions in core applications?

2 Answers   CSS,


What is the maximum size of hashmap in java?

0 Answers  


what is the difference between java and j2ee... is that can i work j2ee on net beans IDE 6.0

2 Answers  


How does a for loop work java?

0 Answers  


Do I need java on my pc?

0 Answers  


Can a boolean be null java?

0 Answers  


Explain importance of finally block in java?

0 Answers  


why there are multiple catches for a try block.don't tell me that there can be multiple exception of a code segment that's why.tell me the real fact behind this.

4 Answers  


What the difference is between execute, execute Query, execute Update?

0 Answers  


What is immutable class in java?

0 Answers  


What are the methods of object class ?

0 Answers  


Categories