Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Java
/
Sealed classes
Where may a directly permitted subtype be declared?
from Sealed classes
Java 25 LTS
intermediate
1 min
Where may a directly permitted subtype be declared?
In the same named module, or in the same package when the root is in an unnamed module
Only in the same source file in every build
In any exported package of any module
Only as a nested class of the sealed root
Check
Ask AI about this kata
Report an error
previous kata
Which declarations can an ordinary class directly permitted by a sealed class use?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload