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)
About Question enthuware.ocajp.i.v7.2.1338 :
Moderator: admin
-
- Posts: 25
- Joined: Wed Dec 17, 2014 9:29 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1338 :
Yes, what you have shown is also valid.
Who is online
Users browsing this forum: No registered users and 5 guests