Image from Google Search

Java 11 came up with a cool feature to execute source code in single file without compiling it pre-hand

Lets assume Vicky.java file contains following beautiful world changing source code

class Vicky {

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

For ages, we do the following

>…

--

--