How many null values are allowed in hashmap?



How many null values are allowed in hashmap?..

Answer / Amar Pal Singh

A HashMap can contain null values, but it cannot have a key and value both as null. This is because Java's HashMap implementation does not allow two identical keys.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Which data structure is needed to convert infix notations to post fix notations?

20 Answers   Fidelity, Infosys,


What do you mean by Logical Error

1 Answers  


What is a subtree in data structures?

1 Answers  


How many sorting algorithms are there?

1 Answers  


What are the disadvantages of linked list over array?

1 Answers  


Define an algorithm. What are the properties of an algorithm? What are the types of algorithms?

1 Answers  


What is a subtree?

1 Answers  


How do you solve a selection sort?

1 Answers  


Define Data Structures?

1 Answers  


Can hashmap store null values?

1 Answers  


What is data structure geeksforgeeks?

1 Answers  


What is binary tree? Explain its uses.

1 Answers  


Categories