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 |
What is * argv?
how to handle exceptions in core applications?
What is the maximum size of hashmap in java?
what is the difference between java and j2ee... is that can i work j2ee on net beans IDE 6.0
How does a for loop work java?
Do I need java on my pc?
Can a boolean be null java?
Explain importance of finally block in java?
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.
What the difference is between execute, execute Query, execute Update?
What is immutable class in java?
What are the methods of object class ?