Java
programminglanguagesjava

Which java-version is installed? #

There is java -version, an undocumented java --full-version in openjdk and the format of the output differs between implementations. An stable way to find the version is:

	echo 'System.out.println(System.getProperty("java.version"))' | jshell  - 2>/dev/null
top