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 |
Explain how to convert any java object into byte array.
how can i take the inputs from users in java program?
What is contract between hashcode and equal method?
How to send a request to garbage collector?
Is passing by reference faster?
what is the difference between Java Command Line and C command Line?
Why java Don't Support Multiple interitence
What is a vararg?
Is string thread safe in java?
how do I create a runnable with inheritance? : Java thread
what r advatages of websphere? & how to deploy?
Which one will take more memory: an int or integer?