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 substring 1 in java?
What is the main function in java?
What is the common usage of serialization? What exceptions occur during serialization?
Write a program to print the pattern given below
How will you get the platform dependent values like line separator, path separator, etc., ?
What is the old name of java?
Is passing by reference faster?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
what is Vector class?
what is enumset?
What are the characteristics of java?
Explain java coding standards for constants?