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
Write a program to search a number in the given list of numbers.
What is the properties class in java programming?
What is super constructor?
What are the differences between processes and threads?
What is an immutable object?
Which collection is best for sorting in java?
What is java and their uses?
What is a data structure java?
Write the algorithm to check the number non-leaf nodes in a tree.
How to pass arraylist to stored procedure in java?
Is null keyword in java?
Why is whitespace important?
Explain purpose of sleep() method in java?
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
What technique can be employed to compare two strings?