public class HelloWorld{
public static void main(String[] args){
System.out.println("Hello, World");
}
}
Java programs are interpreted on Java Virtual Machine (JVM).
“Write Once, Run Anywhere”
java helloworld
interprets and runs the bytecode in helloworld.class.