问题:
现有:
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();
}
}
结果为:()
● 参考解析
本题暂无解析