(Choose 1 answer)
public class As{
What will happen when you attempt to compile and run the following code
int i = 10;int j;
char z= 1;
boolean b;
public static void main(String argv[]){
As a = new As();
a.amethod();
}
public void amethod(){
System.out.println(j);
System.out.println(b);
}
}
A. Compilation succeeds and at run time an output of 0 and false
B. Compilation succeeds and at run time an output of 0 and true
C. Compile time error b is not initialised
D. Compile time error z must be assigned a char value
Q: 37