JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Interfaces Collection, List, Set, Map: hierarchy

    JAVA 25 SELF
    27 level,0 lecture
    We break down the foundations of Java collections: the Collection interface and its branches List, Set, Queue/ Deque, as well as the separate Map hierarchy. You’ll learn why Map does not extend Collection, what the hierarchy looks like, how implementations differ, which methods are key, and when to choose what. In the end—common mistakes and how to avoid them.
    Open
  • Iterable and Iterator: iterating collections

    JAVA 25 SELF
    27 level,1 lecture
    In this lecture we explain how to work with the Iterable and Iterator interfaces: what the iterator() method does, how the for-each loop works “behind the scenes,” when and why to use hasNext() and next() manually, how to safely remove elements via remove() without ConcurrentModificationException, and how to iterate a Map properly using keySet(), values(), and entrySet(). Plenty of practical examples and common mistakes to reinforce the material.
    Open
  • Queue, Deque, Stack: working with queues and stacks

    JAVA 25 SELF
    27 level,2 lecture
    In this lecture, we explore queues and stacks in Java: how the FIFO and LIFO principles work, how Queue, Deque, and Stack differ, why modern projects choose ArrayDeque, and how to safely use the methods offer/ poll/ peek and push/ pop/ peek. We’ll show examples with LinkedList, PriorityQueue, a mini print app and an undo stack, and also cover common mistakes.
    Open
  • NavigableSet/NavigableMap

    JAVA 25 SELF
    27 level,3 lecture
    In this lecture we cover ordered and navigable Java collections: NavigableSet and NavigableMap. In practice, we’ll see how to work with ranges via subSet/ headSet/ tailSet, find “nearest” elements using lower, floor, ceiling, higher, and manage the ends via pollFirst/ pollLast. We’ll examine reverse views descendingSet/ descendingMap, “live” views, and typical use cases (schedules, priorities, scales). As implementations we’ll use TreeSet and TreeMap.
    Open
  • Generics wildcards

    JAVA 25 SELF
    27 level,4 lecture
    In this lecture, we cover the invariance of generics in Java, type parameter bounds ( extends/ super), wildcard types ?, and the PECS rule (“Producer Extends, Consumer Super”). We will look at how to write universal methods with wildcards, how type erasure works, the limitations when using instanceof and arrays, as well as practice with collections and the Stream API. At the end—common mistakes and how to avoid them.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy