1. What will be the output of the program? for (int i = 0; i < 4; i += 2) { System.out.print(i + " "); } System.out.println(i); / Line 5 /
Ask Your Doubts Here
Comments
By: guest on 02 Jun 2017 01.26 am
Compilation fails on the line 5 - System.out.println(i); as the variable i has only been declared within the for loop. It is not a recognised variable outside the code block of loop.