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 |
real time example for deadlock,starvation,livelock
what is mutual exclusion? : Java thread
how can you say that java is independ language
What is stream api in java8?
What are library required to connect to excel sheet.
How do you remove an element from an arraylist in java?
What is a resource leak ?
Difference between flush() and commit() in hibernate?
Can arraylist contain null values?
Why singleton is not thread safe?
What are reference variables in java?
WHAT IS THE MEANING OF ALL TYPE OF BUZZWORDS?