Data Structures Flashcards
1
Q
When you add to a TreeSet, what does it do?
A
It will add them to the set, and even put them in order (ex. from least to greatest)
2
Q
What extends Collection?
A
- Collection -> List -> ArrayList, LinkedList, and Vector
- Collection -> Set -> AbstractSet, HastSet, and LinkedHashSet
- Collection -> Set -> SortedSet -> TreeSet
3
Q
What extends Map?
A
- Map -> HashMap, HashTable
- Map -> SortedMap -> TreeMap