Java 11 changed the way to run a java file that we don't need to compile the Java source files with javac explicitly anymore.
Before Java 11
javac Demo.java
java Demo
Instead, we can directly run the file using the java command with Java 11.
Java 11
java Demo.java