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 does a for loop work java?
There are 2 different ways to create an object. a)By using keyword "new" b)By using Class.forName ("className").newInstance(); What is the difference between these 2 methods.
What is predicate in java?
What is the difference between jsp and servlet?
1).what is the difference between below examples String s="vijay"; String s=new String("vijay");
12 Answers Mascon, Satyam, TCS,
What are the two types of java?
What is object data type?
why Java does not support multiple inheritances?
What happens if we don’t define serial version uid?
What is field name?
Explain about GridBag Layout?
You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain