exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 140 discussion

Actual exam question from Oracle's 1z0-808
Question #: 140
Topic #: 1
[All 1z0-808 Questions]

Given:
MainTest.java:
and commands:

What is the result?

  • A. String main 1
  • B. An exception is thrown at runtime
  • C. String main 1 2 3
  • D. String main 123
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
dsms
5 months, 3 weeks ago
Selected Answer: C
correct is C: String main 1 2 3
upvoted 1 times
...
Rajeevkuamr
1 year ago
The answer is C
upvoted 1 times
...
akbiyik
1 year, 2 months ago
Selected Answer: C
Answer is C.
upvoted 1 times
...
carloswork
1 year, 2 months ago
Selected Answer: C
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.
upvoted 1 times
carloswork
1 year, 2 months ago
I was wrong in the comment where I informed you that the answer is A.
upvoted 1 times
...
...
carloswork
1 year, 2 months ago
Selected Answer: A
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]); }
upvoted 1 times
carloswork
1 year, 2 months ago
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.
upvoted 1 times
...
...
iSnover
1 year, 3 months ago
Selected Answer: 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.
upvoted 2 times
...
javaforlife
1 year, 4 months ago
the correct answer is C if it was java 1 2 3 then it would have been A
upvoted 2 times
...
shivkumarx
1 year, 4 months ago
This should be 1 2 3
upvoted 2 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago