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 boolean false?
What is boolean law?
How do you check if a character in a string is a digit or letter?
What is the benefit of singleton pattern?
Can we call a non-static method from inside a static method?
Explain the pointers in Java?
What is rule of accessibility in java?
Is alive in java?
Explain what pure virtual function is?
What does the exclamation mark mean in java?
explain local datetime api in java8?
Why is flag used in java?
Does java support function overloading, pointers, structures, unions or linked lists?
Is empty .java file name a valid source file name?
Where is stringbuffer stored?