exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 80 discussion

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

Given:



and



and



What is the result?

  • A. The compilation fails on line 2.
  • B. ab action
  • C. An exception is thrown at run time.
  • D. a action
  • E. The compilation fails on line 1.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
7 months ago
Selected Answer: B
answer : B even if it would be AbilityA x = new Test(); the same answer : "ab action"
upvoted 1 times
...
mendjijet
12 months ago
Selected Answer: B
B is correct TESTED
upvoted 1 times
...
d7bb0b2
1 year ago
B is correct=> so reference AbilityB ab = new Test(); is pointed to Test and test has method override this is called. In java real objetct (not reference OR TYPE AbilityB ) is pointed to method that is override by subclass
upvoted 1 times
...
Omnisumem
1 year, 4 months ago
Selected Answer: B
Tested: B.
upvoted 1 times
...
[Removed]
1 year, 5 months ago
Selected Answer: B
COmpiles fine. Answer is B
upvoted 1 times
...
eldonivan
1 year, 5 months ago
The c.action(); in the main method calls Test.action() which in the implementation made by the Test class. Answer is: B ab action
upvoted 1 times
...
tmuralimanohar
1 year, 7 months ago
Answer: B
upvoted 1 times
...
KiKittyKi
1 year, 7 months ago
Correct Ans is B.. Tested
upvoted 1 times
...
Stavok
1 year, 8 months ago
Selected Answer: E
E is correct The default method action() inherited from AbilityA conflicts with another method inherited from AbilityB
upvoted 1 times
d7bb0b2
1 year ago
THAT IS NOT CORRECT, class implement two interfaces overriding the method, so this method is called
upvoted 1 times
...
...
Obalt
1 year, 12 months ago
Correct answer is B
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