![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
[主观题]
请教:2011年3月国家二级(JAVA)笔试真题试卷第1大题第31小题如何解答?
【题目描述】
下列代码的编译或执行结果是______。
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]);
}
A) 1
B) null
C) 0
D) 编译错误A.
B.
C.
D.
【我提交的答案】: D |
【参考答案与解析】: 正确答案:B |
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)