JShell: An Interactive Shell for the Java Platform
summary
JShell is an interactive Java REPL shipping part of JDK 9 that evaluates real Java snippets (no new syntax) by compiling on the fly uses compiler API and running bytecode on the JVM. It creates temporary variables, shows typed results, supports tab completion, history, editable startup snippets, /commands like /list /save /classpath, and persistent session files. Package declarations are disallowed; imports are auto and editable. Execution context isolates runaway code (Ctrl‑C) and remote attach is possible in principle but not provided out of the box.
AI-written summary · about
chapters (9)
- 0:00Start
- 0:59What Is Jay Shell
- 6:35Explore in Java without Jay Shell
- 9:44Using J Shell
- 11:15Clear a Method
- 18:44Command Line Editing a History
- 21:10Tab Completion
- 28:23Classpath Command
- 36:47Is It Possible To Connect to Remote Server on Which Our Application Is Deployed
related talks
44mJShell: An Interactive Shell for the Java Platform
14mREPL : Java developers new friend
41mJava9 and REPL. Forget debugging, welcome joy and productivity
01h 34mLet's Start Java11 from the Beginning with JShell
31mJava9 and REPL Forget debugging, welcome joy and productivity
50mThe Good, the Bad and the Ugly of Java API Design
50mExploring what's new in Java in 2020.
50mJDK 9 Language, Tooling, and Library Features
