Entry point of a program

In Java, every application begins with a class which name must match the filename and a main function. The main function is the entry point of the application. The following program prints out a "Hello World" message:

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


results matching ""

    No results matching ""