Answer Posted / 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 |
Post New Answer View All Answers
What is proper subset?
What is the generic function?
What are the features in java?
What does microservices mean?
How many techniques can be employed to create a string object?
How you can force the garbage collection?
What is java’s garbage collected heap?
Highest level event class of the event-delegation model?
What is thread life cycle in java?
What the difference is between execute, execute Query, execute Update?
What is difference between throw and throws ?
Can we create an object of static class in java?
Does java allow default arguments?
What is java util function?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?