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
Can a class extends itself in java?
What do you mean by byte code?
What is default size of arraylist in java?
What is an interoperable application in java ?
What is the base class of all exception classes in java?
What does indexof mean?
What is difference between classpath and path variables in java?
How do you achieve singleton?
How many types of array are there?
How do you sort an array in java?
How do you create an array in java?
How is string stored in java?
What isan abstract class and when do you use it?
Difference between string s= new string (); and string s = "abv";?
Explain the differences between static and dynamic variables?