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 |
How to disable caching on back button of the browser?
What is the difference between Java Bean and Java Class.?
What is the this keyword?
How to display arraylist values in java?
What is a singleton factory?
What is use of static in java?
What is the integer of 16?
Explain about java sdk?
What is queue in java?
Difference between this(), super()?
12 Answers College School Exams Tests, Oracle,
what are the oops concept in java explain with real time examples
24 Answers Accenture, Bosch, Consummate Technologies, CTS, Current Technologies, iNautix, Infosys, Kekran Mekran, QA InfoTech, RTRT, SofTech, Tech Mahindra, Thorogood, Timios, Wipro,
What is a singleton class in Java?