exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 97 discussion

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

Given:



Which three classes successfully override showFirst()? (Choose three.)

  • A.
  • B.
  • C.
  • D.
  • E.
  • F.
Show Suggested Answer Hide Answer
Suggested Answer: ABE 🗳️

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
ASPushkin
10 months, 4 weeks ago
Selected Answer: AB
Implementation and overriding are not the same thing. overriding (redefining the behavior of a method) and implementing (satisfying specific type constraints of a method) In fact, only case A is the overriding. -------- C Failed Failed it will not work for "void" it will work if interface AdapterFirst { Object showFirst(); } ------- B,E - ok it is possible to mark the class without an abstract methods as abstract ------- F Failed method overriding access must not make more restrictive (can be less restrictive)
upvoted 1 times
ASPushkin
10 months, 4 weeks ago
answer : ABE
upvoted 1 times
...
...
Stavok
1 year, 10 months ago
Selected Answer: ABE
The three classes that successfully override the showFirst() method are A, B, and E. Option A is correct because it provides a concrete implementation of the showFirst() method as required by the AdaptorFirst interface. Option B is correct because it declares the showFirst() method as abstract, which means that any concrete subclass of MainClass must provide an implementation of the showFirst() method. Option E is correct because it provides a concrete implementation of the showFirst() method as required by the AdaptorFirst interface.
upvoted 2 times
d7bb0b2
1 year, 4 months ago
To complement: C: not override because methos return a String D: even not compile, because class not abstract cannot contain methods abstract (without body F: is no valid because is less restritive that the method So A B and E are correct
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