exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 158 discussion

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

Given:



and



Which is the correct implementation of the getRatings method in the Football subclass?

  • A. The subclass getRatings method uses public.getRatings() to call the base class method but uses its own named fields in the implementation.
  • B. The subclass getRatings method implementation directly accesses the fields in the Sports superclass.
  • C. The subclass getRatings method uses new.getRatings() to call the base class method but uses its own named fields in the implementation.
  • D. The subclass getRatings method uses super.getRatings() to call the base class method but uses its own named fields in the implementation.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
d7bb0b2
6 months, 4 weeks ago
Selected Answer: D
D, to call base method of super classs, super.method is used
upvoted 1 times
...
Omnisumem
9 months, 4 weeks ago
Selected Answer: D
AI answered: The correct implementation of the getRatings method in the Football subclass is: D. The subclass getRatings method uses super.getRatings() to call the base class method but uses its own named fields in the implementation. Explanation: Using super.getRatings() allows the Football subclass to call the getRatings method defined in the Sports superclass. The subclass can then use its own named fields and logic in the implementation of the method while still leveraging the functionality provided by the base class.
upvoted 2 times
...
[Removed]
11 months, 1 week ago
Selected Answer: D
D is syntatically correct. The other ones make no sense
upvoted 1 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