What are uses of Hash Code?

Answers were Sorted based on User's Feedback



What are uses of Hash Code?..

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 are uses of Hash Code?..

Answer / guest

memory location

Is This Answer Correct ?    6 Yes 9 No

Post New Answer

More Core Java Interview Questions

What is the static field modifier?

1 Answers  


What is string [] java?

1 Answers  


Which list is sorted in java?

1 Answers  


What are Access Specifiers and Access Modifiers.

6 Answers   TCS,


Is array synchronized in java?

1 Answers  


when System.out.println("") is executed what happens in the back ground?

2 Answers  


What is string made of?

1 Answers  


what is the diffrences between platform independent and portable

5 Answers   TCS,


What is private public protected in java?

1 Answers  


Where are register variables stored?

1 Answers  


What is a class variable?

1 Answers  


What is function and its uses?

1 Answers  


Categories