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 substring 1 in java?

0 Answers  


What is the main function in java?

0 Answers  


What is the common usage of serialization? What exceptions occur during serialization?

0 Answers  


Write a program to print the pattern given below

0 Answers  


How will you get the platform dependent values like line separator, path separator, etc., ?

0 Answers  






What is the old name of java?

0 Answers  


Is passing by reference faster?

0 Answers  


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

0 Answers  


what is Vector class?

2 Answers  


what is enumset?

0 Answers  


What are the characteristics of java?

0 Answers  


Explain java coding standards for constants?

0 Answers  


Categories