【单选题】
清阅读下面程序,说明该程序创建线程使用的方法是()。
puBliCClAssthrEADtEst
puBliCstAtiCvoiDmAin(stringArgs[])
thrEADt1=nEwthrEAD(nEwholloworlD());
thrEADt2=nEwthrEAD(nEwholloworlD());
t1.stArt();
t2.stArt();
ClAssholloworlDimplEmEntsrunnABlE
inti;
puBliCvoiDrun()
whilE(truE)
systEm.out.println("holloworlD"+i++);
iF(i==5)BrEAk;
A.继承thrEAD类
B.实现runnABlE接口
C.t1.stArt()
D.t2.stAn()
查看答案解析
参考答案:
正在加载...
答案解析
正在加载...
根据网考网移动考试中心的统计,该试题:
28%的考友选择了A选项
64%的考友选择了B选项
1%的考友选择了C选项
7%的考友选择了D选项