how to check jre version in rhel code example
Example 1: java check jre version
java -version #for jre version
javac -version # for java compiler version
Example 2: how to find java version linux
java -version
java -version #for jre version
javac -version # for java compiler version
java -version