Knowledge baseExam Center
ENEnglish
Choose language13

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
Knowledge base for this technology

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.

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
  1. 01LESSON
    LESSON 1: “Deep” Immutability – Designing Classes Resistant to Leaks and AliasingAvailable now
  2. 02LESSON
    LESSON 2: Object Publication – Safe State Exposure, Defensive CopiesLocked
  3. 03LESSON
    LESSON 3: CRTP in Java (self-type) – Fluent API with Self-Referencing GenericsLocked
  4. 04LESSON
    LESSON 4: Value-Based Classes — Identity, Equality, and the Wrapper CacheLocked
  5. 05LESSON
    LESSON 5: Advanced equals/hashCode/compareTo for hierarchies and orderingsLocked
  6. 06LESSON
    LESSON 6: Copying objects – copy constructor, deep copy, and problems with cloneLocked
  7. 01QUIZ
    Quiz 1: lessons 1–6Locked
  8. 07LESSON
    LESSON 7: A closed payment hierarchy using a sealed interfaceLocked
  9. 08LESSON
    LESSON 8: record as a data carrier – contracts and usage patternsLocked
  10. 09LESSON
    LESSON 9: switch expression and instanceof pattern matchingLocked
  11. 10LESSON
    LESSON 10: Designing “DTO vs domain” – conversions and separation of concernsLocked
  12. 11LESSON
    LESSON 11: Generics – recursive bounds (T extends Comparable<? super T>)Locked
  13. 12LESSON
    LESSON 12: Wildcard Capture – helpers that fix “wild” typesLocked
  14. 02QUIZ
    Quiz 2: lessons 7–12Locked
  15. 13LESSON
    LESSON 13: Type Erasure in Java: Consequences and Workarounds with Class<T> (Type Tokens)Locked
  16. 14LESSON
    LESSON 14: Varargs with Generics – @SafeVarargs and Avoiding Heap PollutionLocked
  17. 15LESSON
    LESSON 15: Generic Methods – Inference, Multiple BoundsLocked
  18. 16LESSON
    LESSON 16: Generic Builder — Type-Safe, Extensible APILocked
  19. 17LESSON
    LESSON 17: IdentityHashMap vs HashMap – Identity vs EqualityLocked
  20. 18LESSON
    LESSON 18: WeakHashMap: GC Semantics and Lightweight CachesLocked
  21. 03QUIZ
    Quiz 3: lessons 13–18Locked
  22. 19LESSON
    LESSON 19: EnumSet / EnumMap — Bit Representations and PerformanceLocked
  23. 20LESSON
    LESSON 20: TreeMap / NavigableMap: Ranges, Views, and Safe ModificationsLocked
  24. 21LESSON
    LESSON 21: Collection views — unmodifiable*, subList and the consequences of “live” behaviorLocked
  25. 22LESSON
    LESSON 22: Spliterator - characteristics, size estimate, trySplitLocked
  26. 23LESSON
    LESSON 23: A custom Spliterator for a non-standard structureLocked
  27. 24LESSON
    LESSON 24: A custom Collector (CONCURRENT / UNORDERED / IDENTITY_FINISH)Locked
  28. 04QUIZ
    Quiz 4: lessons 19–24Locked
  29. 25LESSON
    LESSON 25: The Java Memory Model (JMM): "happens-before" in practiceLocked
  30. 26LESSON
    LESSON 26: volatile and publication: when it is enough and when it is notLocked
  31. 27LESSON
    LESSON 27: Double-Checked Locking with volatileLocked
  32. 28LESSON
    LESSON 28: synchronized — monitors, scopes, mistakes and costLocked
  33. 29LESSON
    LESSON 29: ReadWriteLock vs StampedLock (optimistic read)Locked
  34. 30LESSON
    LESSON 30: ReentrantLock and Condition: signaling and timeoutsLocked
  35. 05QUIZ
    Quiz 5: lessons 25–30Locked
  36. 31LESSON
    LESSON 31: Lock-free counters - LongAdder / LongAccumulatorLocked
  37. 32LESSON
    LESSON 32: Atomic* and CAS — atomic operations and field updatersLocked
  38. 33LESSON
    LESSON 33: ThreadLocal / InheritableThreadLocal – state isolation and leaksLocked
  39. 34LESSON
    LESSON 34: Barriers and coordination — CountDownLatch and CyclicBarrierLocked
  40. 35LESSON
    LESSON 35: Phaser – multi-phase synchronizationLocked
  41. 36LESSON
    LESSON 36: Semaphores and backpressure — Semaphore and limiting parallelismLocked
  42. 06QUIZ
    Quiz 6: lessons 31–36Locked
  43. 37LESSON
    LESSON 37: Blocking queues - ArrayBlockingQueue / LinkedBlockingQueueLocked
  44. 38LESSON
    LESSON 38: PriorityBlockingQueue and SynchronousQueue — usage scenariosLocked
  45. 39LESSON
    LESSON 39: ForkJoinPool - RecursiveTask and "divide and conquer"Locked
  46. 40LESSON
    LESSON 40: Work-stealing and commonPool() – recursive task designLocked
  47. 41LESSON
    LESSON 41: CompletableFuture - compositions, timeouts, exceptions, allOf/anyOfLocked
  48. 42LESSON
    LESSON 42: CompletableFuture + Executor: controlling context and backpressureLocked
  49. 07QUIZ
    Quiz 7: lessons 37–42Locked
  50. 43LESSON
    LESSON 43: Parallel streams – when to use them and when not, side effects, and orderingLocked
  51. 44LESSON
    LESSON 44: Flow (Reactive Streams) - a mini Publisher/Subscriber in memoryLocked
  52. 45LESSON
    LESSON 45: Weak / Soft / Phantom references + ReferenceQueue — the life cycle of objectsLocked
  53. 46LESSON
    LESSON 46: Cleaner - “deterministic” cleanup of resources in memoryLocked
  54. 47LESSON
    LESSON 47: Avoiding Leaks — Cycles, Listener Registries, Caches, and Weak MapsLocked
  55. 48LESSON
    LESSON 48: Autoboxing / Unboxing in Java: Costs, Comparison Pitfalls, Micro-optimizationsLocked
  56. 08QUIZ
    Quiz 8: lessons 43–48Locked
  57. 49LESSON
    LESSON 49: String.intern, StringBuilder vs + in a Loop – in PracticeLocked
  58. 50LESSON
    LESSON 50: ByteBuffer - allocateDirect, ByteOrder, Character EncodingsLocked
  59. 51LESSON
    LESSON 51: Base64, Charset, CharBuffer: in-memory transcodingLocked
  60. 52LESSON
    LESSON 52: Binary serialization in memory (ObjectOutputStream ↔ byte[])Locked
  61. 53LESSON
    LESSON 53: Data streams: DataInputStream / DataOutputStream (a custom simple protocol)Locked
  62. 09QUIZ
    Quiz 9: lessons 49–53Locked
  63. 54LESSON
    LESSON 54: Deep reflection in Java: methods, fields, constructors, and runtime annotationsLocked
  64. 55LESSON
    LESSON 55: Dynamic proxy: InvocationHandler, aspects and loggingLocked
  65. 56LESSON
    LESSON 56: MethodHandles: lookup, bindTo, invokeExactLocked
  66. 57LESSON
    LESSON 57: VarHandle — atomic access and memory operation orderingLocked
  67. 58LESSON
    LESSON 58: Custom annotations: @Repeatable, inheritance (@Inherited), metadataLocked
  68. 10QUIZ
    Quiz 10: lessons 54–58Locked
  69. 59LESSON
    LESSON 59: Mini “DI”: a simple container based on annotations and reflectionLocked
  70. 60LESSON
    LESSON 60: Advanced java.time: time zones, DST changes, TemporalAdjustersLocked
  71. 61LESSON
    LESSON 61: Formatting rules: DateTimeFormatter, parsing, and validationLocked
  72. 62LESSON
    LESSON 62: Cryptography — SecureRandom, MessageDigest (SHA-256), and constant-time comparisonLocked
  73. 63LESSON
    LESSON 63: HMAC and symmetric encryption in memory (Mac „HmacSHA256”, AES/GCM)Locked
  74. 11QUIZ
    Quiz 11: lessons 59–63Locked
  75. +EXAM
    Confirm 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