ArchitectMind
  1. Home
  2. Java Ecosystem
  3. Book 1 · Core Java & Modern Java
  4. Volume II
Book 1 · Core Java & Modern Java · Volume II

Generics, Collections & Type System

Complete · all 26 topics · Stage 1 · Foundations

This volume is complete: all 26 topics are published, in reading order.

Ch 1Generics Fundamentals

1.1 Generic TypesGeneric classes, generic interfaces and generic methods1.2 Type ParametersType parameter declaration, multiple type parameters and naming conventions1.3 Generic BenefitsType safety, reusability and compile-time checking

Ch 2Bounds and Wildcards

2.1 Bounded Type ParametersUpper bounds and multiple bounds2.2 WildcardsUnbounded, upper-bounded and lower-bounded wildcards2.3 PECSProducer extends, consumer super — with practical examples2.4 Generic Type InferenceTarget typing, the diamond operator and method inference

Ch 3Type Erasure

3.1 Why Type Erasure ExistsBackward compatibility and how generic code is compiled3.2 Erasure BehaviorRaw types, runtime types and bridge methods3.3 RestrictionsGeneric arrays, instanceof, static members and primitive type arguments

Ch 4Collections Framework

4.1 Collection ArchitectureCollection, List, Set, Queue, Deque and Map4.2 List ImplementationsArrayList, LinkedList and CopyOnWriteArrayList4.3 Set ImplementationsHashSet, LinkedHashSet, TreeSet and EnumSet4.4 Map ImplementationsHashMap, LinkedHashMap, TreeMap, EnumMap, WeakHashMap and IdentityHashMap4.5 Queue & DequePriorityQueue, ArrayDeque and BlockingQueue concepts

Ch 5Collection Internals

5.1 HashMap InternalsHashing, buckets, collisions, treeification, resizing and load factor5.2 ArrayList InternalsBacking array, capacity, growth and random access5.3 Tree-Based CollectionsTreeMap, TreeSet, ordering and Comparator5.4 Equality & Hashingequals(), hashCode(), hash-based collections and contract violations

Ch 6Iteration and Algorithms

6.1 IteratorThe Iterator interface and fail-fast behaviour6.2 IterableIterable and the enhanced for loop6.3 SpliteratorSplitting, parallel traversal, ordering and characteristics6.4 AlgorithmsSorting, searching and Collections utility methods

Ch 7Immutable and Specialized Collections

7.1 Immutable CollectionsList.of, Set.of, Map.of and unmodifiable wrappers7.2 Immutable DesignDefensive copying and structural immutability7.3 Specialized CollectionsEnum collections and weak-reference collections
Free question pack

Get 100 free Core Java interview questions

Subscribe for the Book 1 question pack (PDF, every answer explained) and new tutorials once a week. No spam, unsubscribe anytime. What is in the pack?

Almost done! Check your inbox and click the confirmation link. Your download link arrives as soon as you confirm.