题目内容
(请给出正确答案)
提问人:网友Dym112233
发布时间:2022-01-06
[主观题]
下列程序的功能是在监控台上每隔一秒钟显示一个字符串“Hello!”,能够填写在程序中下划线位置,
使程序完整并能正确运行的语句是____。publicclassTestimplementsRunnable{publicstaticvoidmain(Stringargs[]){Testt=newTest();Threadtt=newThread(t);tt.start();}publicvoidrun(){for(;;){try{____;}catch(___
:A.sleep(1000)InterruptedException
B.t.sleep(1000)InterruptedException
C.Thread.sleep(1000)RuntimeException
D.Thread.sleep(1000)InterruptedException
简答题官方参考答案
(由简答题聘请的专业题库老师提供的解答)
查看官方参考答案