Adetayo Akinsanya unkletayo.dev
Engineering / java-collections
8 Articles Published

Java Collections & Data Structures

Technical essays and low-level architectural breakdowns exploring mechanical execution, system trade-offs, and engine internals.

Part 0 2026-08-14

Mastering Java Collections from First Principles: Series Introduction & Learning Roadmap

Discover what you will learn in this 25-part series on Java Collections internals. Build data structures from scratch and master memory mechanics.

Read →
Part 1 2026-08-18

Java Memory Model Explained: Stack vs Heap Allocation for Arrays

Understand how the JVM allocates memory on the stack and heap when declaring primitive and object reference arrays in Java.

Read →
Part 2 2026-08-21

Java equals() and hashCode() Contract: Avoiding Silent HashMap Bugs

Learn the unbreakable contract between equals() and hashCode() in Java to prevent silent HashMap lookup bugs and memory leaks.

Read →
Part 3 2026-08-25

How Java ArrayList Works Internally: Building a Dynamic Array from Scratch

Build a custom ArrayList in Java from scratch. Understand dynamic array resizing, System.arraycopy performance, and garbage collection.

Read →
Part 4 2026-08-28

Java LinkedList Internals: Building a Doubly Linked List from Scratch

Learn how Java LinkedList works under the hood by building a doubly linked list. Compare ArrayList vs LinkedList performance trade-offs.

Read →
Part 5 2026-09-01

Java Iterator and modCount: How Fail-Fast Iteration Prevents Data Corruption

Explore how Java iterators use modCount to throw ConcurrentModificationException and prevent silent data corruption during list traversal.

Read →
Part 6 2026-09-04

Building a Custom Java Stack: LIFO Mechanics & Why Legacy Stack is Broken

Build a custom LIFO Stack in Java. Learn why java.util.Stack is obsolete and how ArrayDeque provides better performance.

Read →
Part 7 2026-09-08

Building a Circular Queue in Java: Array Ring Buffers and Modulo Math

Build a high-performance circular array queue in Java. Eliminate O(N) array shifts using modulo arithmetic head and tail pointers.

Read →