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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

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: 10384
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.

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: 10384
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!

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: Bing [Bot] and 10 guests