JShell – Java 9 interpreter (REPL) – Getting Started

What is REPL

Many languages include tools (sometimes called REPL) for statements interpretation. Using these tools you can test code snippets quickly without creating full project.

For example python. Creating project can sometimes take a long time, but using repl you can getting started with the language more quickly. Each entered expression gives you returned value and it’s type – that’s very valuable information.

In java, instead, we have to create a test or main method which prints results and needs to be recompiled every time you make a change.

Continue reading “JShell – Java 9 interpreter (REPL) – Getting Started”