Collections Flashcards

1
Q

General collection interfaces (Collection, Set, Map, List, Queue, SortedSet, SortedMap)

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

Interfaces extending Collection. Is Map part of Collection interface

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

Difference between ArrayList and LinkedList

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

Difference between Stack and Queue

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

TreeSet vs TreeMap

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

Internal structure of HashMap/Hashtable

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

Requirements for implementation of hashCode to achieve best performance

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

Definition and ways of resolving collisions in hash tables

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

Differences between Hashtable and ConcurrentHashMap

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

Special versions of collections. EnumSet, EnumMap, WeakHaskMap, IdentityHashMap.

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

Iterator and modification of a List. ConcurentModificationException. Collections with safe iterators (CopyOnWriteArrayList/CopyOnWriteArraySet)

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