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
/
Inner classes
A local class captures List<String> events. Which operation is allowed while events remai…
from Inner classes
Java 25 LTS
intermediate
1 min
A local class captures List<String> events. Which operation is allowed while events remains effectively final?
Call events.add("sent") without reassigning events.
Assign events = new ArrayList<>() after creating the local class.
Reassign events only inside an unreachable branch.
Increment a captured int with count++ without a holder.
Check
Ask AI about this kata
Report an error
next kata
Which statement uses the Java 25 specification terms correctly?
Quiz
A new version is available
Reload