javac -versionThe output should be
javac 11.0.4
java -versionYou should see information similar to this:
openjdk version "11.0.4" 2019-07-16 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)
public class HelloWorld { public static void main(String[ ] args) { System.out.println("Hello, World!"); } }
javac HelloWorld.java
java HelloWorldYou should see the program output
Hello, World!