Java9 and REPL. Forget debugging, welcome joy and productivity
summary
Java 9’s REPL JShell lets code run interactively: try new APIs like List.of and optional-to-stream flatMap, edit and save snippets, load a classpath and spin up a tiny web server with Spark Java to expose REST endpoints, then iterate live. It supports running saved scripts, launching the same code outside the shell, and programmatic DI: registerBean calls create Spring 5 beans (including prototype scope) inside the shell so a full app can be bootstrapped and probed in real time.
AI-written summary · about
chapters (8)
- 0:00Introduction to JShell
- 5:16Starting JShell demo
- 8:55Java 9 new features
- 16:11Building web app with Spark
- 25:23Prototyping with JShell script
- 31:20Spring 5 in JShell
- 37:30Debugging JShell issues
- 40:10Future of JShell
related talks
31mJava9 and REPL Forget debugging, welcome joy and productivity
14mREPL : Java developers new friend
44mJShell: An Interactive Shell for the Java Platform
45mJShell: An Interactive Shell for the Java Platform
48mInteractive Java Support to your tool
01h 34mLet's Start Java11 from the Beginning with JShell
50mThe Good, the Bad and the Ugly of Java API Design
46mJava 9 in Anticipation
