exam questions

Exam 1z0-829 All Questions

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

Exam 1z0-829 topic 1 question 11 discussion

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

Given the code fragment:

Which set of class definitions compiles?

  • A. interface Story extends SInt {}
    interface Art extends SInt {}
  • B. public interface Story extends SInt {}
    public interface Art extends SInt {}
  • C. sealed interface Story extends SInt {}
    non-sealed class Art implements SInt {}
  • D. non-sealed interface Story extends SInt {}
    non-sealed interface Art extends SInt {}
  • E. non-sealed interface Story extends SInt {}
    class Art implements SInt {}
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
meltedolive
Highly Voted 11 months, 2 weeks ago
Right option is D.
upvoted 6 times
...
Tangaizw
Most Recent 1 month, 3 weeks ago
How is C wrong?
upvoted 1 times
...
filledapril
5 months, 2 weeks ago
if option E is like: E. non-sealed interface Story extends SInt {} non-sealed class Art implements SInt {} , in this case should select the E
upvoted 1 times
...
Uteman
5 months, 4 weeks ago
D is the correct answer non-sealed opens up for any class to implement
upvoted 1 times
...
TrinhLK
7 months, 3 weeks ago
D is correct
upvoted 1 times
...
minhdev
7 months, 3 weeks ago
D is correct, Sealed interface allows sealed, non-sealed interface extends it.
upvoted 2 times
...
Samps
10 months, 2 weeks ago
Selected Answer: D
Right answer is D
upvoted 4 times
...
supersquax
11 months, 1 week ago
Right answer is D. E is missing "sealed", "non-sealed" or "final" modifier.
upvoted 4 times
...
Tojose
11 months, 3 weeks ago
The right option is D. non-sealed interface Story extends SInt {} non-sealed interface Art extends SInt {}, because the class in option E require an modifier
upvoted 3 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