根据以下各项错误提示分析错误原因
①.cannot assign a value to final variable number;
②.java.lang.ArithmeticException: / by zero;
③.non-static variable c cannot be referenced from a static context;
选择答案:查看解析
给出下面代码:
public class test{
static int a[] = new a[10];
public static void main(String args[]) {
System.out.println(arr[10]);
}
}
下列选项正确的是( )
A. 编译时将产生错误; B. 编译时正确,运行时将产生错误;
C. 输出零; D. 输出空。
使用两个下标的数组被称为数组,假定有如下语句:
float scores[ ][ ] = { {1,2,3},{4,5},{6,7,8,9} };
则scores.length的值为:, scores[1].length的值为:,
scores[1][1]的值为:。