(Choose 1 answer)
What would happen when the following code is compiled and executed?
public class Compare {
public static void main(String args[]) { if(x < 10)println("y is " + y);System.out.printlr}}
int x = 10, y;
y = 1;if(x>= 10) y = 2;
A. The program compiles and prints y is 0 when executed.
B. The program compiles and prints y is 1 when executed.
C. The program compiles and prints y is 2 when executed
D. The program does not compile complaining about y not being initialized.
E. The program throws a runtime exception.
F. Depends on the particular implementation of the Java Virtual Machine
OF
Exit 17