Java 11

Java 11 – Compile free Launch

Java 11 onwards, now a single java file can be tested easily without compiling as well. Consider the following example

Java11Tester.java

public class Java11Tester {
   public static void main(String[] args) {
     System.out.println("Hello World !!"); 
   }
}

Old way of running file (Before Java 11)

C:\hitechpoints\workspace\java11-feature\src>javac Java11Tester.java
C:\hitechpoints\workspace\java11-feature\src>java Java11Tester
Hello World !!

New way of running file

C:\hitechpoints\workspace\java11-feature\src>java Java11Tester
Hello World !!

About the Author: Elavarasan PK

Technical Specialist, Intersoft Data Labs