List
Java · 7 notes
- 5.3 ArrayListhistorical
ArrayList is a resizable array-backed list that preserves order and allows duplicates. These notes trace its implementation through class relationships and the backing array.
- 5.10 LinkedListhistorical
LinkedList is a doubly linked list that preserves order, allows duplicates, and supports deque operations. These notes examine its structure and operations.
- Converting Between List and Arrayhistorical
Arrays and lists often need conversion. These notes use code examples to record conversions in both directions and their behavioral differences.
- List Comparisonhistorical
ArrayList and LinkedList use different underlying structures. A comparison table examines access, insertion, deletion, and related operations.
- Collections.synchronizedListhistorical
SynchronizedList adds synchronization around list operations. These notes cover its wrapper and source code through the need for thread safety.
- 5.25 Vectorhistorical
Vector is a thread-safe list with indexed access, cloning, and serialization. These notes examine usage and implementation through its class relationships.
- 5.26 fail-fasthistorical
Fail-fast stops immediately on an error, while fail-safe allows continued operation in some cases. These notes connect that distinction with collection iteration.