nerdexam
Oracle

1Z0-804 · Question #136

Given: String s = new String("3"); System.out.print(1 + 2 + s + 4 + 5); What is the result?

Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #136. The question stem and answer options stay visible for context.

String Processing

Question

Given:

String s = new String("3"); System.out.print(1 + 2 + s + 4 + 5); What is the result?

Options

  • A12345
  • B3345
  • C1239
  • D339
  • ECompilation fails.

Unlock 1Z0-804 to see the answer

You've previewed enough free 1Z0-804 questions. Unlock 1Z0-804 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#string concatenation#operator precedence#type conversion#numeric literals
Full 1Z0-804 Practice