[单项选择题] 下列程序的功能是在监控台上每隔一秒钟显示一个字符串“你好!”,能够填写在程序中画线位置,使程序完整并能正确运行的语句是
public class Exam implements Runnable
public static void main(String args[])
Exam t=new Exam();
Thread tt=new Thread(t);
tt.start();
public void run()
for(;;)
try
;
catch(e)
System.out.println("你好!");
A.sleep(1)
RuntimeException
B.sleep(1000)
InterruptedException
C.Thread.sleep(1)
InterruptedException
D.Thread.sleep(1000)
InterruptedException