万能百科  > 计算机   > 

[单项选择题] 已知如下代码: public class Test long a[]=new long[10] public static void ma

2021-07-20   

[单项选择题] 已知如下代码:

public class Test

long a[]=new long[10]

public static void main (String args[]

System.out.println(a[6];

以下( )语句是正确的。

A.Output is null.

B.When running,some error will occur.

C.When compile,some error will occur.

D.Output is 0.

正确答案:

D

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签