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

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

Moderator: admin

Post Reply
elboukhari
Posts: 3
Joined: Sun May 02, 2021 4:22 pm
Contact:

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

Post by elboukhari »

Hi,
I'm not OK with the response for this example :

Consider the following program:

Code: Select all

public class TestClass{   
public static void main(String[] args){     
String tom = args[0];     
String dick = args[1];     
String harry = args[2];   
}
 }  
What will be the value of 'harry' if the program is run from the command line: java TestClass 111 222 333

As there is no System.out.println the response should be "None of abode" not "333" !

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

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

Post by admin »

The question does not ask you what will be printed. It only asks you the value of harry. Just because there is no print statement doesn't mean the code will not be executed.
If you like our products and services, please help us by posting your review here.

elboukhari
Posts: 3
Joined: Sun May 02, 2021 4:22 pm
Contact:

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

Post by elboukhari »

confusing

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

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

Post by admin »

We have updated the question to make it clearer.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

elboukhari
Posts: 3
Joined: Sun May 02, 2021 4:22 pm
Contact:

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

Post by elboukhari »

Thank you !

Post Reply

Who is online

Users browsing this forum: marpiva and 45 guests