1z0-808 Exam Question 86

Given:
class Test
int a1;
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.a1 = 11;
StringBuilder sb = new StringBuilder("Hello");
Integer i = 10;
doProduct(i);
doString(sb);
doProduct(item.a1);
System.out.println(i + " " + sb + " " + item.a1);
}
}
What is the result?
  • 1z0-808 Exam Question 87

    Given the code fragment:

    What is the result?
    A:

    B: Compilation fails only at line n1.
    C: Compilation fails only at line n2.
    D: Compilation fails only at line n3.
    E: Compilation fails at both line n2 and line n3.
  • 1z0-808 Exam Question 88

    Given:

    What is the result?
  • 1z0-808 Exam Question 89

    Given the code fragment:

    What is the result?
  • 1z0-808 Exam Question 90

    Given the code fragment:

    What is the result?