java hello world javac code example Example: hello world in java public static void main(String[] args){ System.out.println("Hello World"); }