A main method has "special meaning" (it can be used as an entry point)
only if it is public and static, returns void, and takes a
String array as its argument. That is...
public static void main(String[] args){}
As an entry point, main can also be modified with synchronized, strictfp, or final. Note that the String array can be labeled with any legal identifier, and this variable is
local to the method, so you can define String[] args (or whatever you want to call it) outside of main as well. But "main" itself is not a keyword, so it can be used as an identifier of anything you like.
(Note that prior to 1.4, the entry-point main was
not required to be public.)
[ December 01, 2004: Message edited by: marc weber ]