6、voidmain(Stringargs[]){Testt=newTest();Threadtt=newThread(t);tt.start();}publicvoidrun(){for(;;){try{A.sleep(1000)InterruptedExceptionB.sleep(1000)RuntimeExceptionC.Thread.sleep(1000)RuntimeExceptionD.Thread.sleep(1000)InterruptedException正确答案:D有下面的类: publicclassExample{ s