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 OOP Language?
What is a website container?
How static variable work in java?
What is the method overriding?
What is the longest unicode character?
Is math an abstract class in java?
Can a class be private in java?
Is java se open source?
Can we convert stringbuffer to string?
Define inheritance with reference to java.
Why string is a class?
What is a linkedhashmap java?
Is array passed by reference in java?
What does pointer mean?
What are the classes of java?