What is hash table in java?



What is hash table in java?..

Answer / Anshul Tripathi

In Java, a Hash Table (HashMap) is an implementation of a data structure that uses hashing to store key-value pairs. It provides fast lookup and insertion operations by mapping keys to specific indexes within the array using a hash function. Collisions can occur when different keys produce the same hash value, but techniques like chaining or open addressing are used to handle them.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What does sizeof return?

1 Answers  


question on Thread synchronization

3 Answers   Huawei,


What is high level language in computer?

1 Answers  


What is serialization in java?

1 Answers  


What is the null?

1 Answers  


What is the purpose of finalization in java programming?

1 Answers  


What is operator?

3 Answers  


When can you say a graph to be a tree?

1 Answers   Amazon,


Explain creating threads by implementing runnable class?

1 Answers  


How to instantiate member inner class?

1 Answers  


Explain about vector, dictionary,hash table, property classes?

1 Answers   Patni,


What are the default and parameterized constructors?

1 Answers  


Categories