Check java version in linux

broken image
broken image

The other elegant and convenient way is to use the SDKMAN. In that case, you have to modify a few environment variables when you need to switch your Java version. One way to achieve this is to install multiple Java versions and configure different Java versions manually. Or maybe you are working on two different projects where two different versions of Java are used. You may use Java8 or Java11 in your project, but want to learn newer versions of Java. If you are a Java developer, you may need to install multiple Java versions on your machine.