首页 > 计算机类考试
题目内容 (请给出正确答案)
[主观题]

类Teacher和Student都是类Person的子类。 Person P; Teacher t; Student s; P,t和s都是非空值 if(t ins

类Teacher和Student都是类Person的子类。

Person P;

Teacher t;

Student s;

P,t和s都是非空值

if(t instanceof Person){s=(Student)t;}

这个语句导致的结果是______。

A.将构造一个Student对象 B.表达式合法

C.编译时非法 D.编译时合法而在运行时可能非法

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“类Teacher和Student都是类Person的子类。 …”相关的问题
第1题
类Teacher和Student是类Person的子类:Person p;Teacher t;Student s;//p,t and s are all non

A.编译时正确,但运行时错误

B.将构造一个Student对象

C.表达式是错误的

D.表达式是合法的

点击查看答案
第2题
类Teacher和Student是类Person的子类:Person p;Teacher t;Student s;//p,t ,s 都不为空if(t instanceof Person) {s=(Student)t;}下列说法错误的是()

A.编译时正确,但运行时错误

B.将构造一个Student对象

C.表达式是错误的

D.表达式是合法的

点击查看答案
第3题
Teacher:When wiH the lecture begin?Student:It will begin at half past eight. Teacher:_____
_____?Student:About two hours.

A.What time is it

B.What day is today

C.How long will it last

D.How often

点击查看答案
第4题
Janet, ______was read by the teacher, is a top student in our class.A.the composition of h

Janet, ______was read by the teacher, is a top student in our class.

A.the composition of hers

B.the composition of whom

C.her composition

D.whose composition

点击查看答案
第5题
Student: I'm nervous. Teacher:______. Betty, you'll finish it quickly.

Student: I'm nervous.

Teacher:______. Betty, you'll finish it quickly.

点击查看答案
第6题
Teacher:Do you know what day is today?。 Student:Today is Thursday. Teacher:__________?Stud
ent:It’S July 11,2009.

A.What day is today

B.How are you today

C.What is the date today

D.What is today

点击查看答案
第7题
Which of the following is TRUE of teacher’s correction of his student’s writing errors? (

Which of the following is TRUE of teacher’s correction of his student’s writing errors? ()

A.It is good to correct all the errors

B.A teacher should write something on the papers to encourage his students

C.A teacher’s handwriting must be tidy and clear

D.A teacher had better point out the way for each student to improve his writing

点击查看答案
第8题
From the text we call infer that the writer is most likely to be a____A.schoolboyB.school

From the text we call infer that the writer is most likely to be a____

A.schoolboy

B.school teacher

C.schoolgirl

D.college student

点击查看答案
第9题
选出不同类的一项()

A.pupil

B.student

C.teacher

点击查看答案
第10题
选出每组中不同类的单词()

A.teacher

B.student

C.woman

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改