# Advanced Collections

Java collections are a group of different data structures that allow us to work with “collections” of objects. Data structures allow us to organize our data in various ways based on how we intend to use it. This allows us to work with our data most efficiently. Each collection provides different capabilities and benefits.

Updated: November 16, 2026

## [Types of Collections](https://www.ask-codey.com/courses/java-full-stack-bootcamp/topics/types-of-collections)

1. [Lists](https://www.ask-codey.com/lessons/types-of-collections-lists) (Apprentice): Lists keep items in order. An ArrayList is fast at reading by position, and a LinkedList is fast at adding and inserting.
2. [Maps](https://www.ask-codey.com/lessons/types-of-collections-maps) (Apprentice): Maps store values under unique keys. HashMap is fastest, LinkedHashMap keeps the order you added entries, and TreeMap sorts by key.
3. [Sets](https://www.ask-codey.com/lessons/types-of-collections-sets) (Journeyman): A set holds each value only once, and HashSet, LinkedHashSet and TreeSet differ in the order they give back the values.
4. [Queues](https://www.ask-codey.com/lessons/types-of-collections-queues) (Journeyman): A queue is a collection that allows you to access the elements in the order in which they were added instead of by ordinal position.
5. [Stacks](https://www.ask-codey.com/lessons/types-of-collections-stacks) (Journeyman): A Stack is a collection that allows you to access the elements in the reverse order in which they were added to the collection.

Source: https://www.ask-codey.com/courses/java-full-stack-bootcamp/chapters/advanced-collections
