Collections Flashcards

1
Q

What is a collection? Why is it necessary since we already have arrays?

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

Which collection(s) should I avoid if the order of elements matters?

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

True or false?: all collections are generic types.

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

Which collection guarantees its elements are unique?

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

If you’re not sure which collection to use, but you know you need a collection, what is a sensible collection to start with?

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

Why would I use a Map? Share a concrete example.

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

What is the difference between Map and HashMap?

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

Did you use a List during training? For what?

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

Which collection is fastest? Is it always?

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

Which method should I call to make a collection grow?

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

Name three collection types and their uses.

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