exam questions

Exam 1z0-819 All Questions

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

Exam 1z0-819 topic 1 question 134 discussion

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

Given:



and



What is the output?

  • A. Base class
  • B. The compilation fails.
  • C. Derived class
  • D. An exception Is thrown at runtime.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
2 months, 2 weeks ago
Selected Answer: C
A few interesting things : abstract class can be emty abstract class can be default Access with overridden method can be less restrictive Object type for variable b is B. And it is still B for ((A)b)
upvoted 1 times
...
d7bb0b2
1 year ago
Selected Answer: C
c: real object is called, and method overriden
upvoted 1 times
...
Omnisumem
1 year, 3 months ago
Selected Answer: C
Tested: C.
upvoted 2 times
...
dilleman
1 year, 3 months ago
Tested, C
upvoted 1 times
...
Stavok
1 year, 5 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
Stavok
1 year, 5 months ago
C is correct
upvoted 1 times
...
KiraguJohn
1 year, 6 months ago
I mean B
upvoted 1 times
...
KiraguJohn
1 year, 6 months ago
C default class cannot be accessed outside package
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