O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction

REPL stands for the Read-Evaluate-Print Loop and, as the name states, it reads the command entered on the command line, evaluates it, prints the result of evaluation, and continues this process on any command entered. 

All the major languages, such as Ruby, Scala, Python, JavaScript, and Groovy, among others, have REPL tools. Java was missing the much-needed REPL. If we had to try out some sample code, say using SimpleDateFormat to parse a string, we had to write a complete program with all the ceremonies, including creating a class, adding a main method, and then the single line of code we want to experiment. Then, we have to compile and run the code. These ceremonies make it harder to experiment and learn the features of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required