问题
填空题
下列程序的功能是每隔一秒钟输出一个字符串“Hello!”。
public class C3101 implements Runnable
public static void main(String args[])
C3101 t=new C3101();
Thread tt=new Thread(t);
tt.start();
public void run()
for(;;)
try
______;
catch(______)
System.out.println("Hello");
答案
参考答案:sleep(1000)
InterruptedException e