Ask Question
1 November, 06:46

What is the difference between a TreeSet and a TreeMap?

+1
Answers (1)
  1. 1 November, 09:49
    0
    Answer: TreeSet and Treemap has the following differences : -

    TreeSet is used for the implementation of the Set interface while TreeMap are used for invoking of the interface of the map. Duplicate object values are not present in the TreeSet but TreeMap has the ability to have the duplicate object values. TreeSet comes in the order of sorted objects while TreeMaps have sorted keys. TreeMap has the storage of the single object values while Treemap can store object values as well as keys.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What is the difference between a TreeSet and a TreeMap? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers