Answer is C.
This question is similar to question 56. The iSnover explanation below is correct.
I was wrong in the comment where I informed you that the answer is C.
Answer is A.
Note: Remember to pass arguments ( 1 2 3 ) when run.
To test:
public static void main(String[] args) {
System.out.println("String main " + args[0]);
}
Answer is C.
This question is similar to question 56. The iSnover explanation below is correct.
I was wrong in the comment where I informed you that the answer is C.
The answer is letter C, prints String main 1 2 3. When we pass something in the argument at the time of execution between " " we are saying that everything that is between quotes will occupy a single space in the array that in the case of "1 2 3" as it is on the command line it is at position 0 of the args array.
This section is not available anymore. Please use the main Exam Page.1z0-808 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
dsms
10 months, 3 weeks agoRajeevkuamr
1 year, 5 months agoakbiyik
1 year, 7 months agocarloswork
1 year, 7 months agocarloswork
1 year, 7 months agocarloswork
1 year, 7 months agocarloswork
1 year, 7 months agoiSnover
1 year, 8 months agojavaforlife
1 year, 9 months agoshivkumarx
1 year, 9 months ago