A-A+
下列程序的输出结果是______。 class T44 implements Runnabl
问题详情
下列程序的输出结果是______。 class T44 implements Runnable { public void run() { System.out.print in (Thread.currentThread ().getName () + "运行" ); } } public class ex44 { public static void main(String[] args) { Thread t1 = new Thread(new T44(), "t1"); Thread t2 = new Thread(new T44 () , "t2"); t1 .setPriority(Thread. MAX_PRIORITY); t2.setPriority(Thread.MIN_PRIORITY); t2. start (); t1 .start (); } }
A.t1 运行 t2 运行
B.t2 运行 t1 运行
C.t1 运行 t1 运行
D.t2 运行 t2 运行请帮忙给出正确答案和分析,谢谢!
参考答案
正确答案:A