Search code examples
javajshell

How to show version in jshell


On startup jshell shows the version:

Welcome to JShell -- Version 14.0.1

But is there a way to retrieve the version programmatically?


Solution

  • How about executing Runtime.version()?

    enter image description here