Does treeset allow null?



Does treeset allow null?..

Answer / Diwakar Verma

No, a TreeSet does not allow null elements.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What are skew trees? For a tree with 4 nodes draw all possible binary? Generalize for n nodes how many binary trees can be drawn?

1 Answers   Tech Mahindra,


How many parts are there in a declaration statement?

1 Answers  


Of the following tree structure, which is, efficient considering space and time complexities? (a) Incomplete Binary Tree (b) Complete Binary Tree (c) Full Binary Tree (b) Complete Binary Tree.

1 Answers  


What do you mean by structure property in a heap?

1 Answers  


Why it is important to have aligned addresses? What is the exception generated when there is a misaligned address?

1 Answers   Ciena,


What sort does arrays sort use?

1 Answers  


What is concept of data structure?

1 Answers  


What is 1d array?

1 Answers  


What is a linear search?

1 Answers  


What is insertion sort technique?

1 Answers  


Which is faster treemap or hashmap?

1 Answers  


Does linkedhashset allow duplicates?

1 Answers  


Categories