Hi there,
The answer specified is correct as for as my knowledge.
When he says allow null elememnts he means...
Treemap can take null for values of any key.. and not null for key.as well as value, As any kep in a map can't be null.
"TreeMap is the only class where u get key value map with sorted keys and duplicate entries are replaced"
The More You Share , The More You Learn
What Matters Most Is How You See Your Self.