© Kishori Sharan 2017

Kishori Sharan, Java 9 Revealed, 10.1007/978-1-4842-2592-9_11

11. The Java Shell

Kishori Sharan

(1)Montgomery, Alabama, USA

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 ...

Get Java 9 Revealed: For Early Adoption and Migration now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.