System.out.println(i);
A. 5
B. 0
C. 4
D. Compilation Error
Answer:A
System.out.println(i);
A. 5 B. 0 C. 4 D. Compilation Error
Explanation: The integer variable i declared before using it in for loop and can be accessible after for loop execution completes. In for loop, the i value will be incremented until the condition fails ( i < 5) so i value is 5.