现实世界中实体的概念与计算机世界中的对象是相对应的。( )
选择答案:查看解析
下面程序段
public class returnIt {
returnType methodA(byte x, double y){
return (short) x/y * 2;
}
}
第二行中函数methodA的有效返回值类型为:( )
A. int B. long C. short D. double
public class test{
static int arr[]=new int[10];
public static void main(String at[]){
System.out.println(arr[0]);
}
}
哪个选项是正确的( )
A. 编译时将产生错误; B. 编译时正确,运行时将产生错误;
C. 输出零; D. 输出空。