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
How to sort numbers in java without array?
What is the meaning of I ++ in java?
Is hashmap thread safe?
What is difference between equal and == in java?
What is function and method in java?
how to run ecllipse with jettyserver for windows environment using batch file
What is formatted output?
What is get () in java?
What is the difference between heap and stack memory?
How do you find the absolute value?
What is the syntax and characteristics of a lambda expression?
Explain differences between collection api and stream api?
Will set allow duplicates in java?
Why is java so popular?
What are variable names?