—Has Maria arrived yet?—No, she ______ an hour ago.
A.was supposed to come
B.ought to have come
C.should come
D.must have come
第1题
A.第一行会产生编译错误
B.第五行会产生编译错误
C.第六行会产生运行错误
D.程序会运行和启动
第2题
A.第一行会产生编译错误
B.第六行会产生编译错误
C.第六行会产生运行错误
D.程序会运行和启动
第3题
运行下列程序,会产生什么结果? () public class X exlends Thread implements Runable{ public void run(){ System.out.println("this is run()"); } public static void main(String args[]) Thread t=new Thread(new X()); t.start(); } }
A.第一行会产生编译错误
B.第五行会产生编译错误
C.第六行会产生运行错误
D.程序会运行和启动
第4题
A.编译不通过
B.可以编译运行,输出0
C.编译通过,但运行时抛出ClassCastException
D.可以编译通过,但运行无输出
第6题
运行下列程序,会产生什么结果? () public class X exlends Thread implements Runable{ public void run(){ System.out.println("this is run()"); } public static void main(String args[]) Thread t=new Thread(new X()); t.start(); } }
A.第一行会产生编译错误
B.第五行会产生编译错误
C.第六行会产生运行错误
D.程序会运行和启动
第8题
Public cclass My Thread extends Thread implements Runnable{
Public void run(){
}
Public static void main(String[]args){
Threadt=new Thread(new My Thread());
t.start();
}
}
A.第一行会产生编译错误
B.第六行会产生编译错误
C.第六行会产生运行错误
D.程序会运行和启动
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!