Learn about jshell in Java 9.

We'll cover the following

What is JShell?

JShell is a command-line read–eval–print loop (REPL) included in Java 9 that can be used to experiment and run small snippets of code.

To start JShell, simply type jshell at the command line.

It allows us to define variables and methods, and we can even reference methods that don’t exist yet and define them later.

Get hands-on with 1200+ tech skills courses.