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 instantiate member inner class?
Explain creating threads by implementing runnable class?
What is console based application in java?
How are the elements of a gridbaglayout organized in java programming?
Can we overload final method in java?
what is the difference between the methods sleep() and wait()? : Java thread
Which container method is used to cause a container to be laid out and redisplayed in java programming?
Explain some best practices you would apply while using collection in java?
What is a jagged array in java?
What are keywords and reserved words in java?
What does you mean in math?
extending thread class or implementing runnable interface. Which is better? : Java thread
What is floor math?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
What are access specifiers available in java?