Question 116

Given:

What is the result?
  • Question 117

    Given the definitions of the MyString class and the Test class: What is the result?

  • Question 118

    Given:

    What is the result?
  • Question 119

    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.
  • Question 120

    Given the code snippet from a compiled Java source file:

    and this output:

    Which command should you run to obtain this output?