【单选题】
下列程序的功能是在监控台上每隔一秒钟显示一个字符串“你好!”,能够填写在程序中画线位置,使程序完整井能正确运行的语句是public classExam implements Runnable { public static void main(String args[]){ Exam t=newExam() Thread tt=new Thread(t); tt, start(); } public void run() { for(; ;){ try{ : }catch(e){} System.out.println(“你好!”); } }}
A、sleep(1) RuntimeException
B.sleep(1000) InterruptedException
C.Threasleep(1) InterruptedException
D.Threasleep(1000) InterruptedException
查看答案解析
参考答案:
正在加载...
答案解析
正在加载...
根据网考网移动考试中心的统计,该试题:
0%的考友选择了A选项
25%的考友选择了B选项
1%的考友选择了C选项
74%的考友选择了D选项