publicclassTestimplementsRunnable{
publicstaticvoidmain(Stringargs[]){
Testt=newTest();
Threadtt=newThread(t);
tt.start();
}
publicvoidrun(){
for(;;){
try{____;
}catch(____e){}
System.out.println(“Hello”);
}
}
}
A.sleep(1000)InterrutpedException
B.t.sleep(1000)InterruptedException
C.Thread.sleep(1000)RuntimeException
D.Thread.sleep(1000)InterruptedException
查看更多