Collections Flashcards
1
Q
What is a collection? Why is it necessary since we already have arrays?
A
2
Q
Which collection(s) should I avoid if the order of elements matters?
A
3
Q
True or false?: all collections are generic types.
A
4
Q
Which collection guarantees its elements are unique?
A
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
6
Q
Why would I use a Map? Share a concrete example.
A
7
Q
What is the difference between Map and HashMap?
A
8
Q
Did you use a List during training? For what?
A
9
Q
Which collection is fastest? Is it always?
A
10
Q
Which method should I call to make a collection grow?
A
11
Q
Name three collection types and their uses.
A