1. What is the output from the following code snippet?
intx= 1;
inty:
while(++x<5)
y++,
System.out.println(y):
The code will not compile.
-
+
w
Answers
Answered by
0
Answer:
code will not compile because there is no value intialized to y which will be updated inside the loop
Similar questions