</>CodexBash
All articles
Java and Spring

Java collections

A map of the Java Collections Framework: List, Set, Map, Queue and Deque, the main implementations and their costs, which to choose for which job, sorting and iterating, immutable collections, and the mistakes that cause bugs.

CodexBash, , 5 min read

Almost every Java program stores groups of things, and the Collections Framework in java.util is how. It offers a handful of interfaces, each with several implementations that trade speed, ordering and memory differently. Picking the right one is the difference between code that is instant and code that slows to a crawl at scale. This article is the map.

Sign in to read the rest

The whole 5 minute article is free with an account, along with every problem, lesson and tutorial. No card.