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
Explain the concept of proper inheritance?
Can we modify the throws clause of the superclass method while overriding it in the subclass?
How do you sort arraylist in descending order?
What are the three parts of a lambda expression? What is the type of lambda expression?
Which java ide is used the most?
What is the epoch date?
What is flush buffer?
How are destructors defined in java?
Is sizeof a preprocessor?
How do you find the independent variable?
What type of value does sizeof return?
What are basic keywords?
What is synchronization and why is it important in java programming?
Does java allow overriding static methods ?
How many bytes is a string in java?