Question 36

Given:

What is the result?
  • Question 37

    Given:
    interface Pet { }
    class Dog implements Pet { }
    public class Beagle extends Dog{ }
    Which three are valid?
  • Question 38

    Given:

    What is the result?
  • Question 39

    Given:

    What is the result?
  • Question 40

    Given:

    And given the code fragment:
    Book book1 = new EBook ();
    Book1.readBook();
    Which option enables the code to compile?