List, Set, Map Flashcards

1
Q
  • is an ordered collection of elements that allows you to store, access, and manipulate data
  • allows duplicate elements in the list
  • can grow or shrink dynamically
A

List

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  • is an unordered collection of unique elements that allows you to store, access, and manipulate data
  • does NOT allow duplicate elements in the set
  • can grow and shrink dynamically
A

Set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  • sorted, an implementation of the Set interface that stores its elements in ascending order
  • does NOT allow duplicate elements in the set
  • does NOT allow NULL elements
A

TreeSet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  • unordered, is an implementation of the Set interface that uses a hash table to store its elements
  • duplicate values are NOT allowed
  • allows NULL elements
  • can grow and shrink dynamically
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly