JDK 9 New Feature : Much Awaited JShell (REPL for Java) Review

Published: 11 September 2016
on channel: Genuine Coder
3,127
34

REPL means Read-Eval-Print Loop which can be used to execute simple instructions interactively like we see in scripting languages like Python and Bash.

JShell is included in the official JDK 9 and current beta build (9 Build 135) comes with it. You can access JShell from bin/jshell. You can download the latest version of Java Development Kit from https://jdk9.java.net/download/.

You can always get the help by typing /help in JShell. JShell provides support to make simple experssions like 2+2 or 5+5*5 etc. The result of this expression will be stored in a variable starting with $ symbol.

JShell also supports defining classes and methods. /history can be used to see the previously executed instructions


Genuine Coder
http://www.genuinecoder.com/


Watch video JDK 9 New Feature : Much Awaited JShell (REPL for Java) Review online without registration, duration hours minute second in high quality. This video was added by user Genuine Coder 11 September 2016, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,127 once and liked it 34 people.