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 super void?
How will you initialize an Applet?
Why deletion in linkedlist is fast than arraylist?
system.out.println(1 + 3);
When should a function throw an exception?
0 Answers Thomson Reuters, Virtusa,
which class to use when concatenating strings in a loop.
What are inner classes or non static nested classes in java?
Explain importance of finally block in java?
difference between String a; and String a=new String();? y do v need to assign memory to the variable?
How many static init can you have?
What are serialization and deserialization?
How to do a true java ping from windows?