0

Reading "Learning Java" by O'Reilly and getting familiar with how does the JDK work, I have come upon JShell. However, I'm not quite sure I understand how this REPL works deep down.

Does it compile each statement into bytecode and thereafter executes it with the help of the Java Virtual Machine (the way java source code is built and executed)? Or does it somehow uses some interpreter direclty to execute the statements, avoiding the compiling step?

Kaloyan
  • 41
  • 1
  • 6
  • Does this help? [How JShell tool works internally in Java 9](https://www.tutorialspoint.com/how-jshell-tool-works-internally-in-java-9#) – Abra Jul 15 '22 at 10:07
  • Yup, it perfectly answers my question. Big thanks! – Kaloyan Jul 15 '22 at 11:41

0 Answers0