Learn Java — Advanced
Learn advanced Java mechanisms: generics, concurrency, memory management, reflection and in-memory data processing. Also practice time rules and demonstrations of hashes, HMAC and AES/GCM.
COURSE OVERVIEWREADY
Lessons: 63
Quizzes: 11
All steps: 74
$Ready to start
What you will learn
- Use advanced generic constraints, collections and data processing mechanisms with type contracts in mind.
- Coordinate threads and tasks using locks, synchronization tools, atomic operations, queues and CompletableFuture.
- Understand object reachability and references, and use reflection, annotations, proxy, MethodHandle and VarHandle.
- Process buffers, encodings, serialization and dates, and distinguish cryptographic demonstrations from mechanisms required in a real system.
SYLLABUS / 74
Course curriculum
Work through the curriculum step by step. Completed stages are marked, and you can open the next available stage.
63 lessons11 quizzes74 steps total
- 01LESSONLESSON 1: “Deep” Immutability – Designing Classes Resistant to Leaks and AliasingAvailable now
- 02LESSONLESSON 2: Object Publication – Safe State Exposure, Defensive CopiesLocked
- 03LESSONLESSON 3: CRTP in Java (self-type) – Fluent API with Self-Referencing GenericsLocked
- 04LESSONLESSON 4: Value-Based Classes — Identity, Equality, and the Wrapper CacheLocked
- 05LESSONLESSON 5: Advanced equals/hashCode/compareTo for hierarchies and orderingsLocked
- 06LESSONLESSON 6: Copying objects – copy constructor, deep copy, and problems with cloneLocked
- 01QUIZQuiz 1: lessons 1–6Locked
- 07LESSONLESSON 7: A closed payment hierarchy using a sealed interfaceLocked
- 08LESSONLESSON 8: record as a data carrier – contracts and usage patternsLocked
- 09LESSONLESSON 9: switch expression and instanceof pattern matchingLocked
- 10LESSONLESSON 10: Designing “DTO vs domain” – conversions and separation of concernsLocked
- 11LESSONLESSON 11: Generics – recursive bounds (T extends Comparable<? super T>)Locked
- 12LESSONLESSON 12: Wildcard Capture – helpers that fix “wild” typesLocked
- 02QUIZQuiz 2: lessons 7–12Locked
- 13LESSONLESSON 13: Type Erasure in Java: Consequences and Workarounds with Class<T> (Type Tokens)Locked
- 14LESSONLESSON 14: Varargs with Generics – @SafeVarargs and Avoiding Heap PollutionLocked
- 15LESSONLESSON 15: Generic Methods – Inference, Multiple BoundsLocked
- 16LESSONLESSON 16: Generic Builder — Type-Safe, Extensible APILocked
- 17LESSONLESSON 17: IdentityHashMap vs HashMap – Identity vs EqualityLocked
- 18LESSONLESSON 18: WeakHashMap: GC Semantics and Lightweight CachesLocked
- 03QUIZQuiz 3: lessons 13–18Locked
- 19LESSONLESSON 19: EnumSet / EnumMap — Bit Representations and PerformanceLocked
- 20LESSONLESSON 20: TreeMap / NavigableMap: Ranges, Views, and Safe ModificationsLocked
- 21LESSONLESSON 21: Collection views — unmodifiable*, subList and the consequences of “live” behaviorLocked
- 22LESSONLESSON 22: Spliterator - characteristics, size estimate, trySplitLocked
- 23LESSONLESSON 23: A custom Spliterator for a non-standard structureLocked
- 24LESSONLESSON 24: A custom Collector (CONCURRENT / UNORDERED / IDENTITY_FINISH)Locked
- 04QUIZQuiz 4: lessons 19–24Locked
- 25LESSONLESSON 25: The Java Memory Model (JMM): "happens-before" in practiceLocked
- 26LESSONLESSON 26: volatile and publication: when it is enough and when it is notLocked
- 27LESSONLESSON 27: Double-Checked Locking with volatileLocked
- 28LESSONLESSON 28: synchronized — monitors, scopes, mistakes and costLocked
- 29LESSONLESSON 29: ReadWriteLock vs StampedLock (optimistic read)Locked
- 30LESSONLESSON 30: ReentrantLock and Condition: signaling and timeoutsLocked
- 05QUIZQuiz 5: lessons 25–30Locked
- 31LESSONLESSON 31: Lock-free counters - LongAdder / LongAccumulatorLocked
- 32LESSONLESSON 32: Atomic* and CAS — atomic operations and field updatersLocked
- 33LESSONLESSON 33: ThreadLocal / InheritableThreadLocal – state isolation and leaksLocked
- 34LESSONLESSON 34: Barriers and coordination — CountDownLatch and CyclicBarrierLocked
- 35LESSONLESSON 35: Phaser – multi-phase synchronizationLocked
- 36LESSONLESSON 36: Semaphores and backpressure — Semaphore and limiting parallelismLocked
- 06QUIZQuiz 6: lessons 31–36Locked
- 37LESSONLESSON 37: Blocking queues - ArrayBlockingQueue / LinkedBlockingQueueLocked
- 38LESSONLESSON 38: PriorityBlockingQueue and SynchronousQueue — usage scenariosLocked
- 39LESSONLESSON 39: ForkJoinPool - RecursiveTask and "divide and conquer"Locked
- 40LESSONLESSON 40: Work-stealing and commonPool() – recursive task designLocked
- 41LESSONLESSON 41: CompletableFuture - compositions, timeouts, exceptions, allOf/anyOfLocked
- 42LESSONLESSON 42: CompletableFuture + Executor: controlling context and backpressureLocked
- 07QUIZQuiz 7: lessons 37–42Locked
- 43LESSONLESSON 43: Parallel streams – when to use them and when not, side effects, and orderingLocked
- 44LESSONLESSON 44: Flow (Reactive Streams) - a mini Publisher/Subscriber in memoryLocked
- 45LESSONLESSON 45: Weak / Soft / Phantom references + ReferenceQueue — the life cycle of objectsLocked
- 46LESSONLESSON 46: Cleaner - “deterministic” cleanup of resources in memoryLocked
- 47LESSONLESSON 47: Avoiding Leaks — Cycles, Listener Registries, Caches, and Weak MapsLocked
- 48LESSONLESSON 48: Autoboxing / Unboxing in Java: Costs, Comparison Pitfalls, Micro-optimizationsLocked
- 08QUIZQuiz 8: lessons 43–48Locked
- 49LESSONLESSON 49: String.intern, StringBuilder vs + in a Loop – in PracticeLocked
- 50LESSONLESSON 50: ByteBuffer - allocateDirect, ByteOrder, Character EncodingsLocked
- 51LESSONLESSON 51: Base64, Charset, CharBuffer: in-memory transcodingLocked
- 52LESSONLESSON 52: Binary serialization in memory (ObjectOutputStream ↔ byte[])Locked
- 53LESSONLESSON 53: Data streams: DataInputStream / DataOutputStream (a custom simple protocol)Locked
- 09QUIZQuiz 9: lessons 49–53Locked
- 54LESSONLESSON 54: Deep reflection in Java: methods, fields, constructors, and runtime annotationsLocked
- 55LESSONLESSON 55: Dynamic proxy: InvocationHandler, aspects and loggingLocked
- 56LESSONLESSON 56: MethodHandles: lookup, bindTo, invokeExactLocked
- 57LESSONLESSON 57: VarHandle — atomic access and memory operation orderingLocked
- 58LESSONLESSON 58: Custom annotations: @Repeatable, inheritance (@Inherited), metadataLocked
- 10QUIZQuiz 10: lessons 54–58Locked
- 59LESSONLESSON 59: Mini “DI”: a simple container based on annotations and reflectionLocked
- 60LESSONLESSON 60: Advanced java.time: time zones, DST changes, TemporalAdjustersLocked
- 61LESSONLESSON 61: Formatting rules: DateTimeFormatter, parsing, and validationLocked
- 62LESSONLESSON 62: Cryptography — SecureRandom, MessageDigest (SHA-256), and constant-time comparisonLocked
- 63LESSONLESSON 63: HMAC and symmetric encryption in memory (Mac „HmacSHA256”, AES/GCM)Locked
- 11QUIZQuiz 11: lessons 59–63Locked
- +EXAMConfirm your skills with an examPreparing with this course is optional. You can choose a certification exam for this language and level without completing the course or quizzes. Check your account access and confirm exam authorization.Other status