欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

Given the following code:   
 public class Person{    
int arr[] = new int[10]; 
public static void main(String a[]) {    
System.out.println(arr[1]);   
 }    
} 
Which statement is correct?() 

    A. When compilation some error will occur.
    B. It is correct when compilation but will cause error when running.
    C. The output is zero.
    D. The output is null.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题