下列程序的功能是在监控台上每隔一秒钟显示一个字符串"Hello",能够填写在程序中横线位置,使程序完整并能正确运行的语句是( )。
public class Test implements Runnable
public static void main (String[ ] args )
Test t =new Test( );
Thread tt= new Thread(t);
tt. start( );
public void run ( )
for(; ; )
try

__________;

catch (__________ e )


System. out. println (" Hello" );


题库:计算机等级考试 类型:最佳选择题 时间:2017-07-03 15:04:31 免费下载:《单项选择》Word试卷

下列程序的功能是在监控台上每隔一秒钟显示一个字符串"Hello",能够填写在程序中横线位置,使程序完整并能正确运行的语句是( )。
public class Test implements Runnable
public static void main (String[ ] args )
Test t =new Test( );
Thread tt= new Thread(t);
tt. start( );
public void run ( )
for(; ; )
try

__________;

catch (__________ e )


System. out. println (" Hello" );



A.sleep(1000);
InterruptedException
B.sleep(1000);
InterruptedException
C.Thread. sleep(1000);
RuntimeException
D.Thread. sleep(1000);
InterruptedException

下列程序的功能是在监控台上每隔一秒钟显示一个字符串

本题关键词:程序,功能改进顺序,控制测试程序,应急处置程序,存货监盘程序,监理工作程序,X线检查程序,单位工程验收程序,单位工程施工程序,行政诉讼程序;

微信扫码获取答案解析
下载APP查看答案解析