3

On startup jshell shows the version:

Welcome to JShell -- Version 14.0.1

But is there a way to retrieve the version programmatically?

peer
  • 4,171
  • 8
  • 42
  • 73

1 Answers1

2

How about executing Runtime.version()?

enter image description here

Naman
  • 27,789
  • 26
  • 218
  • 353