Creating Java Main Method Code Example

Snippet 1
  public class Test {

public static void main(String[] args){

	System.out.println("Hello World");
	
}
}
 
Snippet 2
  public class Test {

static void main(String[] args){

	System.out.println("Hello World");
	
}
}