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");
 
}
}
 

Copyright © Code Fetcher 2020

 

 

Published

Leave a comment

Your email address will not be published. Required fields are marked *