Not something you need to know at the beginner's stage, but....
The square brackets operator  and the ellipsis operator ... are both ways of converting the multiple command‑line arguments to an array of Strings. Two of the forms you showed are recommended in the Java® Language Specification (=JLS). The main method should be used to start the application, and you won't notice any difference between the two forms shown there. I would suggest that it is sometimes necessary to declare that parameter final, so you now have four forms.
public static void main(String args)...
public static void main(final String args)...
public static void main(String... args)...
public static void main(final String... args)...
I think there shouldn't be any space between String and ... but that is only my preference.
Don't use the version you will find in old books with args in. It is regarded poor style to write the  late, even though it will work. The  is part of the type String and therefore should be written early.
Not really. A method that takes an array as its last parameter counts as having the same method signature as a method that uses varargs instead of the array. The only difference is that you can call the variable arity method by providing the array elements as separate method arguments.
If they really were different, you would be able to add both versions of the method to the same class. You can't.
Personally I prefer the variable arity version. It makes sense, because you also call a program from the command line by providing the arguments separately from each other.
I prefer there to be no spaces between the type name and the ellipsis, but if you want to change it you can do so by going to Window -> Preferences -> Java -> Code Style -> Formatter. Select a profile you want to edit or create a new profile based on an existing one. Click Edit.... Navigate to White Space -> Declarations -> Methods, and check or uncheck the Before/After ellipsis in varargs parameters checkboxes depending on your preferences. Apply your changes.
posted 1 week ago
Thank you very much for your replies Members
posted 6 days ago
Rajan Masi wrote:Thank you very much . . .
That's a pleasure.
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad: