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. 编译时正确,但运行时错误。
在Java中,如下的修饰符( )不是访问控制修饰符。
A. static B.public C.protected D.private
在Java中,存放字符串常量的对象属于( )类对象。
A. Character B. String C. StringBuffer D. Vector