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 the static field modifier?
What is string [] java?
Which list is sorted in java?
What are Access Specifiers and Access Modifiers.
Is array synchronized in java?
when System.out.println("") is executed what happens in the back ground?
What is string made of?
what is the diffrences between platform independent and portable
What is private public protected in java?
Where are register variables stored?
What is a class variable?
What is function and its uses?