Java
234 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- List Comparisonhistorical
Comparison of ArrayList and LinkedList, Vector and ArrayList, and SynchronizedList and Vector.
- Collections.synchronizedMaphistorical
Synchronized Map wrappers, compound-operation atomicity, iteration locking, and concurrent alternatives.
- Collections.synchronizedListhistorical
1. What It Is: a thread-safe list. 2. Usage. 3. Source analysis: synchronizedList, SynchronizedList construction, mutex initialization, and synchronized method delegation.
- 5.24 TreeMaphistorical
What TreeMap is, usage, and source analysis of constructors, put, get, containsKey, and remove.
- 5.25 Vectorhistorical
What Vector is, usage, source analysis, synchronization, and thread-safety limitations of compound operations.
- 5.26 fail-fasthistorical
fail-fast and fail-safe, Java iterator design, examples, implementation analysis, and summary.
- HashMap in JDK 7historical
1. Questions: hand-written HashMap, why capacity is converted to a power of 2, resizing, hash collisions, head insertion, concurrent resize loops, null keys, and ConcurrentModificationException. 2. References.
- HashMap in JDK 8historical
What HashMap is, usage, source analysis of construction, put, resize, treeification, get, containsKey, remove, containsValue, and differences from JDK 7.