nerdexam
Oracle

1Z0-809 · Question #123

Which two are benefits of polymorphism?

The correct answer is B. More efficient code at runtime D. More flexible and reusable code. https://www.cs.princeton.edu/courses/archive/fall98/cs441/mainus/node5.html

Java Class Design

Question

Which two are benefits of polymorphism?

Options

  • AFaster code at runtime
  • BMore efficient code at runtime
  • CMore dynamic code at runtime
  • DMore flexible and reusable code.
  • ECode that is protected from extension by other classes

How the community answered

(20 responses)
  • A
    15% (3)
  • B
    70% (14)
  • C
    5% (1)
  • E
    10% (2)

Explanation

https://www.cs.princeton.edu/courses/archive/fall98/cs441/mainus/node5.html

Topics

#polymorphism#code reuse#runtime flexibility#OOP principles

Community Discussion

No community discussion yet for this question.

Full 1Z0-809 Practice