nerdexam
Oracle

1Z0-809 · Question #136

1Z0-809 Question #136: Real Exam Question with Answer & Explanation

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

Question

Given:
class Test {
 int al;
 public static void doProduct(int a) {
 a = a * a;
 }
 public static void doString(StringBuilder s) {
 s.append(" " + s);
 }
 public static void main(String[] args) {
 Test item = new Test();
 item.al = 11;
 StringBuilder sb = new StringBuilder("Hello");
 Integer i = 10;
 doProduct(i);
 doString(sb);
 doProduct(item.al);
 System.out.println(i + " " + sb + " " + item.al);
 }
}
What is the result?

Options

  • A10 Hello Hello 11
  • B10 Hello Hello 121
  • C100 Hello 121
  • D10 Hello 11
  • E100 Hello Hello 121

Unlock 1Z0-809 to see the answer

You've previewed enough free 1Z0-809 questions. Unlock 1Z0-809 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.

Full 1Z0-809 Practice