Multiple choice

A variable declared inside the for loop control cannot be referenced outside the loop

  1. true

  2. false

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Java, a variable declared within the initialization block of a for loop has a scope limited to that loop; it cannot be accessed outside.