method is the entry point
for a Java program.
It is the first method that is invoked when a Java program is run.
A correctly defined
method has the following signature: 
- Naming context :A context or scope in which identifiers are unique.
, and the
return type must precede the
method has a single argument that is an array of
identifier is used by custom as the argument name.
However, any other valid identifier may be used in place of
Only Java application programs need a main() method. Applets are not required to have a main() method since they are executed by browsers within the context of a Web page.
The argument of the
method provides access to the program's command line arguments.
For example, suppose that a program is invoked with command line arguments of
would reference the String
program provides an example of using the
method to access command line arguments.
The first requirement in creating an executable Java application is to create a class with a method whose signature (name and method arguments) match the main method, defined as follows:
A keyword that is used to modify the definition of a class, variable, method, or constructor.