Oracle
1Z0-804 · Question #141
Given: StringBuffer b = new StringBuffer("3"); System.out.print(5+4+b+2+1); What is the result?
Sign in or unlock 1Z0-804 to reveal the answer and full explanation for question #141. The question stem and answer options stay visible for context.
String Processing
Question
Given:
StringBuffer b = new StringBuffer("3"); System.out.print(5+4+b+2+1); What is the result?
Options
- A54321
- B9321
- C5433
- D933
- EOutput is Similar to: 9java.lang.StringBuffer@100490121.
- FCompilation 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
#StringBuffer#string concatenation#compilation error#operator overloading