给出下面代码:
public class test{
static int a[] = new a[10];
public static void main(String args[]) {
System.out.println(arr[10]);
}
}
下列选项正确的是( )
A. 编译时将产生错误。 B. 编译时正确,运行时将产生错误。
C. 输出零。 D. 输出空。
异常是在什么时候发生的?( )
A.编写程序时 B.编译时 C.运行时 D.最终用户发出请求时
设已知x=5,y=8,f=true,则下列表达式的值为true的是( )
A. x