peer
peer

Reputation: 4719

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?

Upvotes: 3

Views: 465

Answers (1)

Naman
Naman

Reputation: 31898

How about executing Runtime.version()?

enter image description here

Upvotes: 3

Related Questions