LearnFrenzy
Sign in Take a free test

Records, Enums and Sealed Classes · Records, Enums and Sealed Classes MCQ · Question 15

What sealed means Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 15 Back to Exercise

What does sealed interface Vehicle permits Car, Bike mean?

  • A Vehicle cannot be used
  • B Only Car and Bike may directly implement Vehicle Correct
  • C Car and Bike are final automatically
  • D Vehicle has no methods
Correct Answer: Option B

Other classes trying to implement Vehicle fail to compile.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links