What will be the output of the program?


			  		

Loading

Choose the correct option.

What will be the output of the program?

interface Count {    
short counter = 0;
void countUp();
}
public class TestCount implements Count {
public static void main(String [] args) {
TestCount t = new TestCount();
t.countUp();
}
public void countUp() {
for (int x = 6; x>counter; x--, ++counter) /* Line 14 */ {
System.out.print(" " + counter);
}
}
}

 

A. 36527
B. 37653
C. 0 1 2 3
D. Compilation fails