Skip to content

Module 05 · Generics, Arrays & Collections

Objective group 5: the data-structure toolkit — arrays, generics and wildcards, the Collections Framework, Java 21's Sequenced Collections, and ordering with Comparable/Comparator. Plenty of behavioral traps (array covariance, PECS, immutable factories, TreeSet equality) live here.

Lessons

#LessonWhat it covers
01ArraysDeclaration/init, multidimensional & jagged, Arrays utility, covariance.
02GenericsType parameters, bounds, wildcards (PECS), type erasure.
03Core CollectionsList/Set/Map/Deque, implementations, factory methods, safe removal.
04Sequenced CollectionsSequencedCollection/Set/Map, reversed(), getFirst/getLast (Java 21).
05Comparison & SortingComparable, Comparator chaining, contracts, TreeSet equality.

Module Mini-Exam

A timed, mixed quiz covering the whole module. Aim well above the real exam's 68% pass bar.

Mini-Exam

  • 9 questions
  • 20 minutes
  • 10 total points
  • Pass: 7 pts (68%)