问答题

下列程序的功能是在监控台上每一秒种显示一个字符串“Hello!”,能够填写在线程中下划线位置,使程序完整并能正确运行的语句是publicclassTestimplementsRunnable{publicstaticvoidmain(Stringargs[]){Testt=newTest();Threadtt=newThread(t);tt.start();}publicvoidrun(){for(;;){try{________;}catch(________e){}System.out.println

答案: sleep(1000) InterrutpedException Thread.sleep(1000) Interrup...
微信扫码免费搜题