nerdexam
Oracle

1Z0-850 · Question #9

Given concrete class B is a subclass of concrete class A, and class A implements interface C, which two are examples of polymorphism? (Choose two.)

The correct answer is A. use a reference variable of type C to refer to an instance of type B C. use a reference variable of type C to refer to an instance of type A. See the full explanation below for the reasoning.

Question

Given concrete class B is a subclass of concrete class A, and class A implements interface C, which two are examples of polymorphism? (Choose two.)

Options

  • Ause a reference variable of type C to refer to an instance of type B
  • Buse a reference variable of type A to refer to an instance of type C
  • Cuse a reference variable of type C to refer to an instance of type A
  • Duse a reference variable of type A to refer to an instance of type B
  • Euse a reference variable of type B to refer to an instance of type A

How the community answered

(65 responses)
  • A
    72% (47)
  • B
    5% (3)
  • D
    8% (5)
  • E
    15% (10)

Community Discussion

No community discussion yet for this question.

Full 1Z0-850 Practice