当前位置:SCJP程序员认证考试题库

问题:

[单选]

Given the following code:    
public class Person{ static 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.

某种商品原来的价格为每公斤1.20元,销售量为800公斤,该商品的需求弹性系数为2.4,请问该商品价格下降25%之后,总收益发生了什么变化? 职业规划到底对我们有()重要的作用 有职业生涯规划的人会有清晰的发展目标。 人生涯规划正是对个人角色的有效定位的方式。 有职业规划就一定能获得丰厚的收入。 职业生涯规划的好坏必将影响整个生命历程。 质膜的组成:大多数膜由: 《众神的黄昏》是()创作的 勃拉姆斯。 李斯特。 莫扎特。 瓦格纳。 为什么说神示证据制度的出现和长久存在,是符合当时的历史条件的?

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

参考答案:

  参考解析

 int型数组是类对象,它在类被加载时完成初始化,在前面题目中已经有叙述,由于是原始数据类型int,其初始值为0。

在线 客服