问题 问答题

阅读以下程序,请写出该程序的输出结果。
class CurrentThreadDemo
public static void main(String args[])
Thread t=new Thread();System. out. println("Current thread");
t.setName("My Thread");System. out. println("After name change");
try for(int n=3;n>0;n--)
System. out. println(n);Thread. sleep(1000);

catch(InterruptedException e)
System.out.prindn("Main thread interrupted");


答案

参考答案:Current thread
After name change
3
2
1

填空题
选择题