Learning paths

Upgrade from Java 8 to Java 25

What changed after Java 8 and how to use it: var, switch expressions, text blocks, records, pattern matching, the HTTP client, modules and virtual threads.

  • For: You work on an older codebase and want to use modern Java.
  • By the end: You can modernise a Java 8 codebase and plan the upgrade with confidence.
  • Size: 15 lessons (51 min of reading, plus time to try the code), intermediate
  1. Control flow and the modern switchJava basics, beginner, 3 min
  2. Records, enums and sealed typesObject-oriented programming, intermediate, 3 min
  3. Immutable objectsObject-oriented programming, intermediate, 3 min
  4. Collectors: grouping, partitioning and joiningJava 8: lambdas and streams, intermediate, 3 min
  5. Calling APIs with the Java HTTP ClientJava 9 to 25, intermediate, 3 min
  6. Modules (JPMS)Java 9 to 25, advanced, 3 min
  7. Virtual threadsMultithreading, advanced, 3 min
  8. JVM memory and garbage collectionJVM internals, advanced, 3 min
  9. Class loading and the JIT compilerJVM internals, advanced, 3 min
  10. JSON with JacksonTools and testing, intermediate, 3 min

Other paths