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 structs in java?
Where are global variables stored?
Can private class be inherited in java?
How is java created?
Difference between process and thread?
What happens to the Exception object after handling an exception?
What is unmodifiable list in java?
What are the different types of multitasking?
what is the purpose of "virtual"?
What is the purpose of garbage collection in java?
Difference between static binding and dynamic binding?
what is the difference between Object Based Language and Object Oriented Language?
Describe what happens when an object is created in java ?
Which api is provided by java for operations on set of objects?
What is meant by tab pans?