If we try to add duplicate key to the hashmap, what will happen?
Answer / Amrita Tiwari
Attempting to add a duplicate key to a HashMap will result in an exception (IllegalArgumentException) being thrown.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can binary tree have 1 child?
Is binary tree a binary search tree?
If you have to store one lakh objects, what will be a better option- a hash map or an array list?
What is sorting and its types?
What does abstract data type means?
23 Answers College School Exams Tests, Infosys, SBIT, TCS,
What is the difference between hashset and treeset?
What is binary tree? Explain its uses.
What data type is array?
Explain the terms base case, recursive case, binding time, run-time stack and tail recursion.
How is bubble sort done?
What does simulation of queues mean?
Explain what are the major data structures used in the hierarchical data model?