No.
String[] args defines args as a variable that can refer/point to ANY sized single array.
For example:
String[] args = {"a", "B"};
args = new String[4];
args = new String[] {"a"};
On...
Type: Posts; User: Norm
No.
String[] args defines args as a variable that can refer/point to ANY sized single array.
For example:
String[] args = {"a", "B"};
args = new String[4];
args = new String[] {"a"};
On...
BTW .java looks like a source file extension.
If the Foo class is not in a package, the command line would be:
java Foo
Often it's because there was an arbitrary decision made by the programmer. Somewhere back in history a programmer decided that the method to start the execution of a program should be named main....
The tutorial is a good place to look for how to do things.
For example for methods: Defining Methods (The Java™ Tutorials > Learning the Java Language > Classes and Objects)