Answers for "treeset vs treemap"

1

treeset vs treemap

TreeSet: Can contain only unique values and
it is sorted in ascending order
TreeMap: Can contain only unique keys and
keys are sorted in ascending order.
Posted by: Guest on December-05-2020
2

treemap vs hashmap

- TreeMap doesn't have null key and keys are sorted
 Can contain only unique keys and keys are sorted in ascending order.
 
 v- HasHMap can have null key, order is not guaranteed
Posted by: Guest on January-06-2021

Browse Popular Code Answers by Language