Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Master Java Collections, Generics & Stream API with Hands-on
9 students

Master Java Collections, Generics & Stream API with Hands-on

Master Java Collections Framework, Lambda Expressions & Stream API with coding challenges
Created byCode Caffeine
Last updated 4/2026
English
English [Auto],

What you'll learn

  • Master Java Collections Framework (List, Set, Map, Queue)
  • Understand performance differences (ArrayList vs LinkedList, HashMap vs TreeMap)
  • Write cleaner code using Lambda Expressions
  • Use Java Stream API for real-world data processing

Course content

4 sections • 44 lectures • 5h 3m total length
  • Introduction3:26

    Explore the Java collections framework, differentiate between list, set, and queue, compare arrays with collections, and learn common implementations like ArrayList, HashSet, and PriorityQueue.

  • List interface7:59

    Explore the Java list interface, its positional access methods, and generics. Compare ArrayList and LinkedList implementations and the immutable list creation via List.of.

  • ArrayList9:29

    Learn how to use array lists in Java: initialize with default, capacity, or existing collections; use generics; add, remove, and insert elements; and traverse with for loop, for-each, or iterator.

  • ArrayList - Performance Consideration1:16

    Learn how array lists store objects in sequence with positional access and auto boxing, and why insertions or removals are CPU expensive, then see how LinkedList addresses this issue.

  • LinkedList7:40

    Explore Java's linked list as a doubly linked list implementation of the list interface, contrast with array list, and cover core operations like add, remove, set, peek, poll, and iterators.

  • Arraylist vs Linkedlist3:00

    Master when to use ArrayList versus LinkedList by comparing positional access, traversal, and insertion costs, noting ArrayList requires shifting for inserts while a LinkedList updates links.

  • Coding Challenge - ArrayList vs LinkedList1:26

    Explore array list versus linked list performance by performing add, index, remove, get, and clear operations on 10,000 elements, timing each with System.currentTimeMillis to declare a winner.

  • Coding Challenge Solution - ArrayList vs LinkedList15:23

    Engage in a hands-on Java challenge that compares ArrayList and LinkedList performance, timing add, add at index, remove, get, and clear operations in nanoseconds to determine the faster structure.

  • Vector6:28

    Discover how the vector class implements the java.util.List interface, offers thread-safe operations via synchronized methods, and differs from ArrayList in behavior and capacity handling.

  • Stack5:14

    Explore the stack data structure in Java, extending Vector for last-in, first-out access. Learn push, pop, peek, empty, and search with a hands-on demonstration of the top element.

  • List - Summary2:33

    Explore how a collection forms the java.util.collection root and extends iterable, then learn which list implementations provide zero-based access and fit use cases: array list, linked list, stack, and vector.

  • Sorting Lists - Comparator vs Comparable15:05

    Compare and sort lists in Java by using comparator and comparable, choosing between multiple comparator implementations and a single comparable, and applying them to sort by id or score.

  • Set5:45

    Explore Java sets, distinct-object collections with no positional access, introduced via the Set.of method for immutable sets, and mutable implementations like HashSet, LinkedHashSet, and TreeSet.

  • HashSet and LinkedHashSet6:09

    Explore hash set and linked hash set, create via constructors, add elements, and observe non-deterministic order in hash set versus insertion order in linked hash set; clone requires casting.

  • TreeSet10:52

    Learn how TreeSet provides a sorted set with no duplicates, demonstrates default and custom comparators, and explores navigable set methods like ceiling, floor, and head set.

  • Queue9:54

    Explore the Java queue interface and its first-in, first-out behavior, with priority queue, priority blocking queue, and deque-backed linked list, plus adding, iterating, peeking, polling, and comparator-based ordering.

  • Map Interface8:55

    Learn how maps in java.util store key-value pairs with unique keys, explore map implementations like hash map and tree map, and use methods such as put, get, containsKey, and entrySet.

  • HashMap vs LinkedHashMap vs TreeMap14:14

    Explore hash map, linked hash map, and tree map; compare their order behavior, including hash map's lack of order and linked hash map's insertion order, and tree map's key-based sorting.

  • Iterating Maps6:56

    Learn to iterate maps with enhanced for loops or iterators, use the entry set, and modify values via entry.setValue while contrasting read-only behavior.

  • Collections - Summary1:58

    Explore the core java collections: list, set, map and queue, and learn common implementations like array, linked list, vector, stack, hash set, linked hash set, tree map, and priority queue.

Requirements

  • Beginner level Java Programming knowledge

Description

Master Java Collections Framework, Java Generics, Java Lambda Expressions, and Java Stream API in this complete hands-on course designed for Data Structures in Java (DSA) and real-world backend development.

This course begins with the Java Collections Framework, the core of Java programming and DSA. You will deeply understand List, Set, Queue, and Map, and learn how structures like ArrayList, LinkedList, HashSet, and HashMap work internally. We also cover key comparisons such as ArrayList vs LinkedList and HashMap vs TreeMap, helping you choose the right data structure based on performance—an essential skill for Java interviews and DSA problem solving.

Next, you will master Java Generics, including generic classes, bounded generics, and wildcard generics, enabling you to write flexible, reusable, and type-safe code.

The course then moves into Java Functional Programming, where you will learn lambda expressions, functional interfaces, and how to write cleaner and more concise code using modern Java practices.

Finally, you will explore the powerful Java Stream API, learning how to process and transform data efficiently using operations like filter, map, and flatMap—skills highly valued in real-world applications.

With coding challenges, practical examples, and clear explanations throughout, this course is perfect for developers aiming to master Java collections, streams, generics, and DSA concepts while confidently preparing for technical interviews.

Who this course is for:

  • Intermediate and advanced java developers