Question 11

Given the code fragment:

What is the result?
  • Question 12

    Given:

    Which statement is true about the main method?
  • Question 13

    Given the code:

    Which code fragment, when inserted at line n1, enables the code to print sum is 30?
  • Question 14

    Given the code fragment:

    What is the result?
  • Question 15

    Given these class definitions:

    Which class or classes compile?