Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
meltedolive
Highly Voted 4 months ago
Right option is D.
upvoted 6 times
...
TrinhLK
Most Recent 1 week, 2 days ago
D is correct
upvoted 1 times
...
minhdev
1 week, 6 days ago
D is correct, Sealed interface allows sealed, non-sealed interface extends it.
upvoted 1 times
...
Samps
3 months ago
Selected Answer: D
Right answer is D
upvoted 4 times
...
supersquax
3 months, 3 weeks ago
Right answer is D. E is missing "sealed", "non-sealed" or "final" modifier.
upvoted 4 times
...
Tojose
4 months, 1 week 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 ...