Java 9 | Jshell for quick prototyping with inbuilt REPL

Опубликовано: 31 Май 2026
на канале: automation hacks
130
3

Java as we know is a statically typed programming language, but did you know it also has a REPL (Read-evaluate print loop) like many dynamic programming languages?

Well yes, Java 9 introduced JShell as a quick way to try out and prototype Java code

In this short video, we learn

🔹 How to launch JShell
🔹 Try out Java snippet
🔹 Save tried-out commands to a file

And, you can find the code at this Github repository:

https://github.com/automationhacks/ja...