+ 4
WHAT IS THE OUTPUT?
public class Program { public static void main(String[] args) { int i,sum=0; for (i=0;1<2;i++){ System.out.println("sum"); } } }
9 Answers
+ 22
sum
sum
sum
sum
sum
sum
sum
sum
sum
sum
sum
sum
sum
sum
.
.
time limit exceed
+ 12
infinity loop...
That's a long output...🤣
+ 11
what did you expect from this condition : 1<2
it always true!
+ 8
It is infinite because 1 will always be smaller than 2.
+ 5
1<2 is always true
@infinity times sum is printed! :)
+ 4
Thanks all my friends 😊😊😊
+ 3
My output is sum but it is infinite loop ....doesn't have end :(
0
in short it's a code that will crash eventually