exam questions

Exam 1z0-808 All Questions

View all questions & answers for the 1z0-808 exam

Exam 1z0-808 topic 1 question 73 discussion

Actual exam question from Oracle's 1z0-808
Question #: 73
Topic #: 1
[All 1z0-808 Questions]

Which two are benefits of polymorphism? (Choose two.)

  • A. Faster code at runtime
  • B. More efficient code at runtime
  • C. More dynamic code at runtime
  • D. More flexible and reusable code
  • E. Code that is protected from extension by other classes
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Sudhakar_Senthilkumar
2 weeks, 3 days ago
Selected Answer: CD
More Dynamic and Flexible
upvoted 1 times
...
netoplaxe
7 months ago
CD is the correct Answer. In Enthuware Exam-Pool you will find the same question and the correct answer which is CD
upvoted 1 times
...
dsms
1 year, 5 months ago
Selected Answer: BD
B: More flexible and reusable code: Polymorphism makes code more flexible and reusable because it allows objects of different classes to be treated as if they are objects of the same class. This means that if you have a method that works with an object of a particular class, you can also use that method with objects of other classes that inherit from that class or implement the same interface. This can save a lot of time and effort because you don't have to write a separate method for each class.
upvoted 3 times
dsms
1 year, 5 months ago
C: More dynamic code at runtime: Polymorphism makes code more dynamic at runtime because it allows the actual method that gets called to be determined at runtime rather than at compile time. This means that if you have a method that is overridden in a subclass, the version of the method that gets called will depend on the type of the object at runtime. This can lead to more flexible and powerful code that can adapt to different situations.
upvoted 5 times
dsms
1 year, 5 months ago
made a misprint. I mean D , not C
upvoted 2 times
...
...
...
winfred_lu
1 year, 6 months ago
Selected Answer: CD
C: Method overriding is runtime polymorphism. The process in which call to the overridden method is resolved at runtime, also known as dynamic method dispatch. D: Method overriding works together with inheritance to enable code reuse of existing classes without the need for re-compilation.
upvoted 4 times
...
anmoldev2java
2 years, 1 month ago
why cant C
upvoted 2 times
...
iSnover
2 years, 3 months ago
Selected Answer: BD
The correct answer is BD, not much to explain. Polymorphism makes the code more efficient in the sense that an object accesses features of the parent or child class and it also makes the code more flexible.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago