About Question enthuware.ocajp.i.v8.2.1131 :

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

Moderator: admin

Post Reply
carlos.casallas
Posts: 1
Joined: Mon Jan 18, 2016 9:11 am
Contact:

About Question enthuware.ocajp.i.v8.2.1131 :

Post by carlos.casallas »

Hi,

Why the answer option "The program will fail to compile, since the argument args passed to the static method main cannot be passed on to the non-static method func." has the comment "It certainly can be."?

It is confuse considering the correct answer is "The program will compile and run successfully."

thanks and regards.

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

Re: About Question enthuware.ocajp.i.v8.2.1131 :

Post by admin »

The comment is referring to the claim made in that option, which is, "the argument args passed to the static method main cannot be passed on to the non-static method func". The comment is trying to convey that this claim is incorrect because the argument args passed to the static method can certainly be passed on to the non-static method func.

HTH,
Paul.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 87 guests