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
/
Java language fundamentals
Which change makes a later read of a local variable definitely assigned?
from Java language fundamentals
Java 25 LTS
beginner
1 min
Which change makes a later read of a local variable definitely assigned?
Assign it on only the true branch of an if.
Assign it on both branches that can reach the read.
Declare it final without an initializer.
Move the declaration outside the method.
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