以下的程序的调试结果为?public class As{int i = 10;int j;char z= 1;boolean b;public static
以下的程序的调试结果为?
public class As{
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.输出0 和false
B. 输出0 和true
C. 编译错误,b 未初始化
D. 编译错误, z 必须赋字符值