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 |
Why destructor is not used in java?
As a developer what steps do you take to improve the performance?
whats the life cycle of jsp
Which class is the superclass for all the classes?
How do we access static members in java?
Tell me the difference between an applet and a Japplet?
What is the byte range?
Why is stringbuffer thread safe?
Variable of the boolean type is automatically initialized as?
What are the application of stack?
How do you declare an empty string?
Explain OOPs concept.