how to check which java version is used linux code example Example: check java version linux //1.6 and higher versions java -version