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

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
coder007
Posts: 25
Joined: Wed Dec 17, 2014 9:29 pm
Contact:

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

Post 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)

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

Yes, what you have shown is also valid.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests