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
In try-with-resources, the body throws A and close() then throws B. What normally propaga…
from Exceptions
Java 25 LTS
intermediate
1 min
In try-with-resources, the body throws A and close() then throws B. What normally propagates?
A propagates and B appears in A.getSuppressed().
B replaces A, which is discarded.
A becomes the cause of B.
Neither propagates because resources close automatically.
Check
Ask AI about this kata
Report an error
previous kata
Spot the bug in the blocking worker
Spot the bug
A new version is available
Reload