change javac version linux code example
Example 1: how to change java version in linux
$ sudo update-alternatives --config java
Example 2: ubuntu java compiler version
javac --version
$ sudo update-alternatives --config java
javac --version