To find the java version, run the command
java --version
Example
boby@sok-01:~$ java --version openjdk 14.0.2 2020-07-14 OpenJDK Runtime Environment (build 14.0.2+12-Ubuntu-120.04) OpenJDK 64-Bit Server VM (build 14.0.2+12-Ubuntu-120.04, mixed mode, sharing) boby@sok-01:~$
Leave a Reply