public class test{
static int arr[]=new int[10];
public static void main(String at[]){
System.out.println(arr[0]);
}
}
哪个选项是正确的( )
A. 编译时将产生错误; B. 编译时正确,运行时将产生错误;
C. 输出零; D. 输出空。
1: Person p;
2: Teacher t;
3: Student s; //p, t and s are all non-null.
4: if(t instanceof Person) { s = (Student)t; }
第4行语句的结果是( )
A. 将构造一个Student对象。 B. 表达式是合法的。
C. 表达式是错误的。 D. 编译时正确,但运行时错误。
AWT组件中,Applet默认的布局管理器为( )
A. BorderLayout B. FlowLayout C. GridLayout D. CardLayout
下面有关于对象与类的关系的说法不正确的是( )
A.在面向对象程序设计中,类与对象的概念是同等地
B.类是同类对象的集合与抽象
C.类是对象概念的延伸,因此对象包含类
D.一个类可以生成多个对象,并且这些对象都具有相同的属性
下列标识符中正确的是( )
A. _sys1_lll B. 2mail C. $change D. class