Question 11

Given:

and
checkQuality(QUALITY.A);
and

Which code fragment can be inserted into the switch statement to print Best?
  • Question 12

    Given:
    var data = new ArrayList<>();
    data.add("Peter");
    data.add(30);
    data.add("Market Road");
    data.set(1, 25);
    data.remove(2);
    data.set(3, 1000L);
    System.out.print(data);
    What is the output?
  • Question 13

    Given:

    Which three classes successfully override printOne()? (Choose three.)

  • Question 14

    Given:

    Which three classes successfully override printOne()? (Choose three.)

  • Question 15

    Which two var declarations are correct? (Choose two.)