[HD Pg 0, Sec. 2.1.1 - the-main-method]

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

Moderator: admin

Post Reply
amannur
Posts: 3
Joined: Sat Dec 21, 2019 1:10 pm
Contact:

[HD Pg 0, Sec. 2.1.1 - the-main-method]

Post by amannur »

In the section "Examples of Invalid Main method", the #3, is the verbiage accurate?

It reads "Invalid because it DOESN'T take EXACTLY ONE parameter of type String array".

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

Re: [HD Pg 0, Sec. 2.1.1 - the-main-method]

Post by admin »

It looks fine. The given method has a String[] parameter, which is good but it also has a second String parameter, which is the problem.

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests