In this chapter, you will learn:
What the Java shell is
What the JShell tool and the JShell API are
How to configure the JShell tool
How to use the JShell tool to evaluate snippets of Java code
How to use the JShell API to evaluate snippets of Java code
What Is the Java Shell?
The Java shell, which is called JShell in JDK 9, is a command-line tool that provides an interactive way to access the Java programming language. It lets you evaluate snippets of Java code instead of forcing you to write an entire Java program. It is a REPL (Read-Eval-Print loop) for Java. JShell is also an API that you can use to develop ...