What are uses of Hash Code?
Answers were Sorted based on User's Feedback
Answer / 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 |
What is the difference between a window and a frame in java programming?
How many bytes is a string in java?
What are the different types of collections in java?
write a progam hashmap & hashtable?
What happens if an exception is throws from an object's constructor?
What is the java idl system?
Explain about the performance aspects of core java?
Difference between hashCode() & equals()?
What is a boolean in java?
What are multiple inheritances? Is it supported by java?
How do you declare an empty string?
What are other modifiers?