java define main function

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

Also in Java: