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
Which retention policy applies when an annotation interface has no `@Retention`?
from Annotations
Java 25 LTS
beginner
1 min
Which retention policy applies when an annotation interface has no `@Retention`?
`RetentionPolicy.CLASS`
`RetentionPolicy.SOURCE`
`RetentionPolicy.RUNTIME`
The compiler selects a policy from `@Target`.
Check
Ask AI about this kata
Report an error
next kata
What does `@Inherited` make a subclass query inherit?
Quiz
A new version is available
Reload