Collections in Java
Gain insights into Java Collections Framework. Delve into lists, sets, and hashmaps. Learn about data modification, sorting, thread-safety, and internal workings for efficient usage.
Join 3.1 million developers at
What You'll Learn
- Identify core Java collection interfaces and distinguish Collection from the Collections utility class
- Implement ArrayList operations: insert, retrieve, update, remove, and iterate safely with Iterator/ListIterator
- Sort lists using Collections.sort or streams with Comparable and Comparator (lambdas and anonymous classes)
- Use LinkedList and explain its node-based structure and time complexity for common operations
- Apply Set types (HashSet, TreeSet) to manage uniqueness, iterate, sort, and solve duplicate-detection tasks
- Manipulate Map types (HashMap, TreeMap, LinkedHashMap) including iteration, sorting, and key design with equals/hashCode
- Use Arrays and Collections utilities for searching, sorting, copying, min/max, unmodifiable, and thread-safe wrappers
Learning Roadmap
1.
Let's Begin
Let's Begin
2.
Lists in Java
Lists in Java
3.
LinkedList in Java
LinkedList in Java
2 Lessons
2 Lessons
4.
CopyOnWriteArrayList in Java
CopyOnWriteArrayList in Java
3 Lessons
3 Lessons
5.
Sets in Java
Sets in Java
6 Lessons
6 Lessons
6.
TreeSet in Java
TreeSet in Java
4 Lessons
4 Lessons
7.
HashMap In Java
HashMap In Java
10 Lessons
10 Lessons
8.
TreeMap in Java
TreeMap in Java
4 Lessons
4 Lessons
9.
LinkedHashMap in Java
LinkedHashMap in Java
2 Lessons
2 Lessons
10.
Additional Map Implementations
Additional Map Implementations
3 Lessons
3 Lessons
11.
Arrays Class
Arrays Class
5 Lessons
5 Lessons
12.
Collections Class
Collections Class
5 Lessons
5 Lessons
Saurav Aggarwal
Extensive experience of 10 years working on technologies like Java, Spring, Hibernate, Web Services, Redis, Kafka and AWS.
Trusted by 3.1 million developers working at companies
Anthony Walker
@_webarchitect_
Evan Dunbar
ML Engineer
Software Developer
Carlos Matias La Borde
Souvik Kundu
Front-end Developer
Vinay Krishnaiah
Software Developer
Built for 10x Developers












Free Resources