问题:
现有:
class Thread2 implements Runnable {
void run() {
System.out.print ("go¨);
}
public static void main(String [] args) {
Thread2 t2=new Thread2();
Thread t=new Thread(t2);
t.start();
}
}
结果为:()
A . go
B . 运行时异常被抛出
C . 代码运行,无输出结果
D . 编译失败
现有:
class Thread2 implements Runnable {
void run() {
System.out.print ("go¨);
}
public static void main(String [] args) {
Thread2 t2=new Thread2();
Thread t=new Thread(t2);
t.start();
}
}
结果为:()
● 参考解析
本题暂无解析
相关内容
相关标签