Can we add duplicate keys in a hashmap? What will happen if we attempt to add duplicate values?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Data Structures Interview Questions

How does a treemap sort?

0 Answers  


Does treemap preserve order?

0 Answers  


Why is treeset sorted?

0 Answers  


When should structures be passed by values or by reference?

0 Answers   Tech Mahindra,


Is array size dynamic or fixed?

0 Answers  


Why is quicksort unstable?

0 Answers  


Is hashmap synchronized?

0 Answers  


What is bubble sort and quick sort?

0 Answers  


Can we insert null in set?

0 Answers  


What is tree in computer science?

0 Answers  


How does the size of arraylist increases dynamically?

0 Answers  


Why null is not allowed in treemap?

0 Answers  


Categories