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.
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
5 months, 3 weeks agoRajeevkuamr
1 year agoakbiyik
1 year, 2 months agocarloswork
1 year, 2 months agocarloswork
1 year, 2 months agocarloswork
1 year, 2 months agocarloswork
1 year, 2 months agoiSnover
1 year, 3 months agojavaforlife
1 year, 4 months agoshivkumarx
1 year, 4 months ago