thepointman.dev_

Courses / Java Collections

Lists Deep Dive

intermediate9 lessons

ArrayList's backing array growth strategy, the amortised O(1) add, subList() views and the hidden CME trap, fail-fast iterators and modCount. LinkedList's doubly-linked node structure and when O(1) head/tail operations actually matter. Cache locality benchmarks that will change how you think.

// Lessons

  1. 01

    The List Contract — Random Access, Ordering and Duplicates

    soon
  2. 02

    ArrayList Internals — The Backing Array and Growth Strategy

    soon
  3. 03

    ArrayList: add(), remove(), indexOf() — The Actual Code Path

    soon
  4. 04

    ArrayList: subList() — Views, Mutations and the Hidden CME Trap

    soon
  5. 05

    Fail-Fast Iteration — modCount, Structural Modification and CME

    soon
  6. 06

    LinkedList Internals — The Doubly-Linked Node Structure

    soon
  7. 07

    LinkedList: When O(1) Head/Tail Operations Actually Matter

    soon
  8. 08

    ArrayList vs LinkedList — Cache Locality, Memory and the Real Benchmark

    soon
  9. 09

    CopyOnWriteArrayList — The Snapshot Iterator and When to Pay the Copy Tax

    soon