JDK 11 make java command can directly run source code like other scripting language or interpreter. Lets say we have a java source file called hello.java as follow.
public class Hello {
public static void main(String[] args) {
System.out.println(“Hello World!”);
}
}
Run the file by executing :
java hello.java
It works!

End.