Which of the collections allows null as the key?
Answer / Ankita Mishra
In Java, neither HashMap nor any other standard collection allows a `null` key. However, you can use LinkedHashMap or TreeMap with a custom Comparator to allow null keys, if needed.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why is it called bubble sort?
State the difference between persistent and ephemeral data structure?
Tell me why might quick sort might be better than merge sort?
Who invented quicksort?
What data structure underlies a python list?
List the applications of stacks?
What is an expression tree?
Can we add duplicate keys in a hashmap? What will happen if we attempt to add duplicate values?
How many times is merge sort called?
Why is the isempty() member method called?
What is the quickest sorting algorithm?
What is the use of bubble sort?