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
/
Exceptions
What must a method do when it calls code that may throw a checked exception?
from Exceptions
Java 25 LTS
beginner
1 min
What must a method do when it calls code that may throw a checked exception?
Catch it with a compatible handler or cover it with the method’s throws clause
Convert it to RuntimeException in every case
Add throws Throwable, because checked types cannot be named individually
Do nothing; exception checking happens only at runtime
Check
Ask AI about this kata
Report an error
next kata
What does this program print?
Predict the output
A new version is available
Reload