This guide provides information about using the Java Shell tool (JShell) to explore the Java language and prototype code.


This document is intended for developers interested in using a Read-Eval-Print Loop (REPL) tool to learn the Java language, explore new Java APIs and features, and prototype complex code.

Documentation Accessibility

For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at

Access to Oracle Support

Oracle customers that have purchased support have access to electronic support through My Oracle Support. For information, visit or visit if you are hearing impaired.

Related Documents

See JDK 20 Documentation.


The following conventions are used in this document:

Convention Meaning


Boldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary.


Italic type indicates book titles, emphasis, or placeholder variables for which you supply particular values.


Monospace type indicates commands within a paragraph, URLs, code in examples, text that appears on the screen, or text that you enter.


Name of a keyboard key or key combination in angle brackets (<>) indicates that the key or key combination is pressed as part of the user input.