encyclopegia.org

JShell

JShell is a Java read–eval–print loop which was first introduced in the JDK 9. It is tracked by JEP 222 jshell: The Java Shell (Read–Eval–Print Loop). One reason why JShell was proposed for Java 9 is the lack of a standard interactive environment for the language; the de facto library to use a Java REPL was often BeanShell, which has been dormant since 2003, and arbitrarily diverged from the Java language.

JShell is a Java read–eval–print loop which was first introduced in the JDK 9. It is tracked by JEP 222 jshell: The Java Shell (Read–Eval–Print Loop). One reason why JShell was proposed for Java 9 is the lack of a standard interactive environment for the language; the de facto library to use a Java REPL was often BeanShell, which has been dormant since 2003, and arbitrarily diverged from the Java language. ==Example== jshell> int a[] = { 0, 1, 3, 5, 8 } a ==> int[5] { 0, 1, 3, 5, 8 } jshell> int fact(int n) { ...> return n } | created method fact(int) jshell> for (int i = 0; i a[i] = fact(a[i]); jshell> a a ==> int[5] { 1, 1, 6, 120, 40320 } ==See also== Exploratory programming ==References==

References

  1. Oracle Announces Java SE 9 and Java EE 8 · retrieved 2017-09-24 · rev 1374345138
    Cite this reference

    MLA "Oracle Announces Java SE 9 and Java EE 8." 2017-09-24. https://web.archive.org/web/20170922110128/https://www.oracle.com/corporate/pressrelease/java-se-9-and-ee-8-092117.html. Accessed 24 November 2026.

    Chicago "Oracle Announces Java SE 9 and Java EE 8." 2017-09-24. https://web.archive.org/web/20170922110128/https://www.oracle.com/corporate/pressrelease/java-se-9-and-ee-8-092117.html.

    APA encyclopegia.org. (2017). Oracle Announces Java SE 9 and Java EE 8. Retrieved November 24, 2026, from https://web.archive.org/web/20170922110128/https://www.oracle.com/corporate/pressrelease/java-se-9-and-ee-8-092117.html

  2. JEP 222: jshell: The Java Shell (Read-Eval-Print Loop) · retrieved 2016-10-31 · rev 1374345138
    Cite this reference

    MLA "JEP 222: jshell: The Java Shell (Read-Eval-Print Loop)." 2016-10-31. http://openjdk.java.net/jeps/222. Accessed 24 November 2026.

    Chicago "JEP 222: jshell: The Java Shell (Read-Eval-Print Loop)." 2016-10-31. http://openjdk.java.net/jeps/222.

    APA encyclopegia.org. (2016). JEP 222: jshell: The Java Shell (Read-Eval-Print Loop). Retrieved November 24, 2026, from http://openjdk.java.net/jeps/222

  3. JEP 222: jshell: The Java Shell (Read-Eval-Print Loop) · retrieved 2016-10-31 · rev 1374345138
    Cite this reference

    MLA "JEP 222: jshell: The Java Shell (Read-Eval-Print Loop)." 2016-10-31. http://openjdk.java.net/jeps/222. Accessed 24 November 2026.

    Chicago "JEP 222: jshell: The Java Shell (Read-Eval-Print Loop)." 2016-10-31. http://openjdk.java.net/jeps/222.

    APA encyclopegia.org. (2016). JEP 222: jshell: The Java Shell (Read-Eval-Print Loop). Retrieved November 24, 2026, from http://openjdk.java.net/jeps/222

  4. JShell, the Java 9 REPL – What does it do? · retrieved 2016-10-31 · rev 1374345138
    Cite this reference

    MLA "JShell, the Java 9 REPL – What does it do?." 2016-10-31. https://web.archive.org/web/20150905160031/https://jaxenter.com/jshell-the-java-9-repl-what-does-it-do-120299.html. Accessed 24 November 2026.

    Chicago "JShell, the Java 9 REPL – What does it do?." 2016-10-31. https://web.archive.org/web/20150905160031/https://jaxenter.com/jshell-the-java-9-repl-what-does-it-do-120299.html.

    APA encyclopegia.org. (2016). JShell, the Java 9 REPL – What does it do?. Retrieved November 24, 2026, from https://web.archive.org/web/20150905160031/https://jaxenter.com/jshell-the-java-9-repl-what-does-it-do-120299.html

Cite this article

MLA

"JShell." encyclopegia.org, 2026, https://encyclopegia.org/wiki/jshell. Accessed 24 November 2026.

Chicago

"JShell." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/jshell.

APA

encyclopegia.org. (2026). JShell. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/jshell

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Cahuzac affair

enwiki · references available

Kazi Shuvo

enwiki · references available

Lois Daish

enwiki · references available

St. Ignatius College, Rio de Janeiro

enwiki · references available

Freakish (TV series)

enwiki · references available

Yanbangcai

enwiki · references available

List of ambassadors of Georgia to China

enwiki · references available

One Day in October

enwiki · references available

Bandai Namco Forge Digitals

enwiki · references available

Ruth Doggett Terzaghi

enwiki · references available

Cornelia C. Cameron

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1374345138 · 0.5 · snapshot enwiki-001374345138

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.