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 use of a abstract variable?

0 Answers  


Which class should you use to obtain design information about an object in java programming?

0 Answers  


Can a for statement loop indefinitely?

3 Answers  


What is the purpose of using java.lang.class class?

0 Answers  


How do you calculate roots in java?

0 Answers  






What is string array?

0 Answers  


What is arrays fill in java?

0 Answers  


How can we access some class in another class in java?

0 Answers  


How big is a gigabyte?

0 Answers  


What is “try and catch” in java

5 Answers   Cap Gemini, TCS,


Why java is free from garbage values??

4 Answers  


What is file class and what is its purpose?

1 Answers  


Categories