Exploring Java 9: The Key Parts
summary
Covers concrete Java 9 changes and how to use them: private and static helpers inside interfaces, try‑with‑resources accepting existing variables, List.of/Set.of/Map.of immutable factories, Stream.takeWhile/dropWhile and the new iterate overload with predicate, Optional.ifPresentOrElse and Optional.stream, CompletableFuture.completeOnTimeout/orTimeout, and the REPL JShell for quick experiments. Explains the module system via module-info.java (JDK splits into 94 modules), compiling/running with --module-path, exports/requires/opens, service‑loader wiring, and producing minimal runtimes with jlink — all demonstrated and runnable.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 3:05Interfaces
- 4:55Classes
- 8:18Cleanup
- 12:45Other languages
- 15:39Underscore
- 23:23Improv
- 30:23Optional
- 32:01Optional Example
- 34:56If Present or Else
- 41:45Process
- 45:26Comparison








