Print output by using While - Java Quiz Question


What will be the output of the following program?


A
0 1 2
B
1 2
C
2
D
1
E
Compilation Error or Runtime Error