问题 单项选择题

已知如下代码: public class Test long a[]=new long[10] public static void main (String args[]{ System.out.println(a[6];} 以下( )语句是正确的。

A.Output is nul

B.When running,some error will occu

C.When compile,some error will occu

D.Output is 0.

答案

参考答案:D

问答题
单项选择题