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 are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
What is double in java?
What does string mean in java?
What is a final class ?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
Can you have two constructors in java?
Is java an ide?
What is the string function?
What is object-oriented paradigm?
Difference between object instantiation and construction ?
What is the difference between an interface and an abstract class?
What are the characteristics of java?
How is a variable stored in memory?
What is numeric function?
Can we have any code between try and catch blocks?