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 can two threads be made to communicate with each other?
How can you read content from file in java?
difference between String a; and String a=new String();? y do v need to assign memory to the variable?
What is the type of lambda expression?
Differentiate storage classes on the basis of their scope?
What is charat java?
What do you mean by constructor?
What are internal variables?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What is the final keyword?
What is the difference between class & object?
What is square root in java?