Java Main Method Declaration

Java Main Method serves as a starting point for a Java application.

Main Method Syntax:

public static void main(String[ ] args)
{
statements
}
where
public means the main method is accessible by any other classes
static means the main method can be called without instantiated
void means the main method doesn't return any values
String[ ] args is an array of String parameters that the main method receives

0 comments:

Post a Comment