首页 试题广场 > 试题详情
单选题

【C012021】以下程序运行的结果为()

public class Example extends Thread{

public void run(){
try{
Thread.sleep(1000);
}catch (InterruptedException e){
e.printStackTrace();
}
System.out.print("run");
}
public static void main(String[] args){
Example example=new Example();
example.run();
System.out.print("main");
}
}

  • A.
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 6个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部