下列代码的编译或执行结果是( )。
public class MyVal{
puhlic static void main(String args[]){
MyVal m=new MyVal();
m.aMethod();
}
public void aMethod(){
boolean b[]=new Boolean[5];
System.out.println(b[0]);
}
}
程序中输出结果是布尔类型数组的第一个元素, 因为布尔型数组变量在声明时被初始化为 null, 因此选择 B。