请阅读下面程序 public class ThreadTest { public static void main(String args) throws Exception{int i=0;Hello t=new Hello();while(true) { System.out.println("Good Moming"+i++); if (i==2 && t.isAlive()) {Syste

A.sleep() B.yield() C.interrupt() D.start()

时间:2024-04-27 20:29:00

相似题目