JShell commands

As we mentioned in the previous section, the full list of JShell commands can be obtained by typing the /? command. Each command comes with a one-line description. There is another way to get the same list but without description, that is by typing / followed by Tab. The screen would show the following content:

Pressing Tab the second time would bring the same list of the commands with a synopsis (one-line description) for each. To make it easier for a user, while typing, a command, subcommand, command argument, or command option can be abbreviated, as long as it remains unique so that the tool can recognize it unambiguously. ...

Get Java 9 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.