+91-85006-22255
What will be the output of the following program?
public class Next { public static void main(String... argsssss) { int i = 0; while (1) { if (i == 4) break; ++i; } System.out.println("i = " + i); }}
Topic: Using Break In for Loop To Exit
Read this topic Take test on this topic
Open In App