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 |
IN java collections we have both interfaces and classes. instead of using interfaces why we can't use classes only like that why we can't use interfaces only. why we need two things interface and class.
Write a program to print the pattern given below
When do we use hashset over treeset?
why is multiple inheritance not allowed in java?
7 Answers Elementus Technologies, Huawei, Infosys,
How is string stored in java?
how many types of cloning?
How do you write a scanner class in java?
why java is better then .net?
Is java util regex pattern thread safe?
what is the difference between AWT and SWING what is the advantage of using swing?
What is internal iteration in java se 8?
why abstract class does not have object creation