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
/
Annotations
What does `@Inherited` make a subclass query inherit?
from Annotations
Java 25 LTS
intermediate
1 min
What does `@Inherited` make a subclass query inherit?
An eligible annotation declared on a superclass class declaration.
Annotations on every implemented interface.
Annotations on overridden superclass methods.
All type-use annotations inside inherited signatures.
Check
Ask AI about this kata
Report an error
previous kata
Which retention policy applies when an annotation interface has no `@Retention`?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload