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 format of Inner Class after it compiled?
How do you replace all in word?
What is appletviewer?
Can we execute a program without main() method?
List the different types of classloaders in java.
List some oops concepts in java?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
How do you read a char in java?
Explain the scope of a variable.
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
Can we extend singleton class in java?
Is ++ operator thread-safe in java?