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 use of a abstract variable?
Which class should you use to obtain design information about an object in java programming?
Can a for statement loop indefinitely?
What is the purpose of using java.lang.class class?
How do you calculate roots in java?
What is string array?
What is arrays fill in java?
How can we access some class in another class in java?
How big is a gigabyte?
What is “try and catch” in java
Why java is free from garbage values??
What is file class and what is its purpose?