About Question enthuware.ocpjp.i.v11.2.3236 :

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

Moderator: admin

Post Reply
zunayeed
Posts: 10
Joined: Fri Jun 28, 2019 10:58 am
Contact:

About Question enthuware.ocpjp.i.v11.2.3236 :

Post by zunayeed »

Why //3 will not give compilation error ?

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

Re: About Question enthuware.ocpjp.i.v11.2.3236 :

Post by admin »

There is no reason for it to not compile. Why do you think it should fail compilation?

layonez
Posts: 1
Joined: Sat May 09, 2020 1:09 pm
Contact:

Re: About Question enthuware.ocpjp.i.v11.2.3236 :

Post by layonez »

How do you know type of array in args[]?
From what phrase in question text reader can assume that it is "String args[]" hidden in var?

If this line is already caused compilation error how can i rely on assumption that "if it was correct code there would be "String args[]""
Im also think quesstion is really missleading in that way.

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

Re: About Question enthuware.ocpjp.i.v11.2.3236 :

Post by admin »

I understand your point but you need to select options and, given the complete code listing, the intention of the question is quite clear and therefore, //3 is not a problem.

The thing is, you can argue about the right answer here but you can't do that in the real exam. Our intention is only to make the readers aware of how to answer in the real exam. If you try to read too much into the question beyond what is quite apparent, you will lose marks.

Post Reply

Who is online

Users browsing this forum: nkaragulov and 8 guests