A and D ---> incorrect WordDoc is not in the same package as Doc.C ---->incorrect, Does not have public or final, E---> incorrect,WordDoc must declare itself as final, sealed, or non-sealed when extending a sealed class
A wrong cuz "package p1.p2" doesnt make sense
B correct
C wrong cuz no access modifier is more restrictive than public and not allowed.
D wrong cuz when using "sealed", one must also use "permits"
E wrong cuz missing "sealed", "non-sealed", or "final"
F correct.
upvoted 2 times
...
Log in to ExamTopics
Sign in:
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.
SrinivasJasti
2 weeks, 1 day agosupersquax
5 months, 2 weeks ago