Java Check JRE -Version

java -version  #for jre version
javac -version  # for java compiler version 
Batman