Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1338 :

Posted: Sun Dec 21, 2014 1:42 pm
by coder007
This way is also valid:

public static void main(String... args)

Ellipsis can't follow the name of variable.
Also, args is not a Java key word, you can name it whatever you want.

public static void main(String... myArrayOfArguments)

Re: About Question enthuware.ocajp.i.v7.2.1338 :

Posted: Sun Dec 21, 2014 8:06 pm
by admin
Yes, what you have shown is also valid.