Data Structures Flashcards

You may prefer our related Brainscape-certified 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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What extends Collection?

A
  • Collection -> List -> ArrayList, LinkedList, and Vector
  • Collection -> Set -> AbstractSet, HastSet, and LinkedHashSet
  • Collection -> Set -> SortedSet -> TreeSet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What extends Map?

A
  • Map -> HashMap, HashTable

- Map -> SortedMap -> TreeMap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly