What will be the output of the program ?


			  		

Loading

Choose the correct option.

What will be the output of the program ?

public class Test {     
public static void main(String [] args) {
signed int x = 10;
for (int y=0; y<5; y++, x--)
System.out.print(x + ", ");
}
}

 

A. 10, 9, 8, 7, 6,
B. 9, 8, 7, 6, 5,
C. Compilation fails.
D. An exception is thrown at runtime.