Learning path

Java collections for backend developers

A curated path through 11 Java collection guides, built around practical backend choices: maps, equality, hashing, sets, lists, queues, concurrency, memory, and complexity.

Start here

Pillar guides

These articles are the strongest entry points into the Java collections cluster.

How to study

Choose collections by workflow.

Java collection choices are rarely about one method in isolation. A backend workflow may build a collection, search it, mutate it, serialize it, and share it across threads.

Start with defaults: ArrayList for most lists, HashMap for key-value lookup, HashSet for membership checks, ArrayDeque for simple queues, and PriorityQueue for repeated priority-based removal.

Use the Big-O Cheat Sheet while comparing operations, then browse Topics for adjacent Java, algorithms, and backend architecture clusters.

FAQ

Java collections learning questions

Which Java collection should I learn first?

Start with ArrayList, HashMap, HashSet, ArrayDeque, and PriorityQueue, then learn equals, hashCode, and collision behavior for reliable hash-based collections.

Should I use ArrayList or LinkedList by default?

Use ArrayList by default for most Java application code. LinkedList is useful only for narrower insertion or removal patterns where the position is already known.

When should I use ConcurrentHashMap?

Use ConcurrentHashMap when multiple threads need shared map access. For request-scoped or method-local maps, a regular HashMap is usually simpler.

How should I study Java collection complexity?

Compare the whole workflow: building, lookup, iteration, removal, sorting, range navigation, serialization, and thread ownership. Big-O is useful, but memory and ownership matter too.