Can we null keys in treemap?



Can we null keys in treemap?..

Answer / Ravinder Kumar Singh

{"No, TreeMap does not allow null keys. It throws a NullPointerException if you try to put or get a null key."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is the difference between b tree and binary search tree?

1 Answers  


What are the non linear data structure?

1 Answers  


In tree construction which is the suitable efficient data structure?

1 Answers  


What are the goals of data structure?

1 Answers  


Write a program to reverse a link list.

1 Answers   iNautix,


How can you add an item to the beginning of the list?

1 Answers  


How do you initialize an arraylist?

1 Answers  


List out the basic operations that can be performed on a stack?

1 Answers  


What is advantage and disadvantage of linked list?

1 Answers  


What does the dummy header in linked list contain?

1 Answers  


Define union-by-weight?

1 Answers  


What is example of data?

1 Answers  


Categories