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 −

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

Old way of running file

$ javac
$ java Tester
Hello World!

New way of running file

$ java
Hello World!

This new feature will help developer to quick test a functionality without need to compile before running a code.

Kickstart Your Career

Get certified by completing the course

Get Started