Java Language Specification, Version Java SE 13 Edition
14.4. Local Variable Declaration Statements5 Documented Misconceptions
ControlledLocalAccess
One can control access to local variables using access modifiersForVariableScopeBeyondLoop
The scope of variables declared in a for loop header extends beyond the loopLocalVariablesAutoInitialized
Local variables are automatically initializedLoopBodyScopeImpliesLoopLifetime
Lifetime of variables declared in a loop body extends across all loop iterationsUntypedVariables
Variable declarations don't need a type