阅读下面程序 1 public class Try extends Thread{ 2 public static void main(String args[]){ 3 Try t=new Try( ); 4 t.start( ); 5 } 6 7 public void run(int j){ 8 int i=0; 9 while(i<5){ 10 System.out.println(“祝你成功!”); 11 i++; 12 } 13 } 14 } 该程序要求打印5行“祝你成功!”,必须改正程序中的某行代码,程序才能完成。选择正确的修改是【 】

题库:计算机等级考试 类型:最佳选择题 时间:2017-07-03 16:29:03 免费下载:《单选题》Word试卷

阅读下面程序 1 public class Try extends Thread{ 2 public static void main(String args[]){ 3 Try t=new Try( ); 4 t.start( ); 5 } 6 7 public void run(int j){ 8 int i=0; 9 while(i<5){ 10 System.out.println(“祝你成功!”); 11 i++; 12 } 13 } 14 } 该程序要求打印5行“祝你成功!”,必须改正程序中的某行代码,程序才能完成。选择正确的修改是【 】
A.将第1行的extendsThread改为implementsRunnable
B.将第3行的newTry()改为newThread()
C.将第4行t.start()改为start(t)
D.将第7行的publicvoidrun(intj)改为publicvoidrun()

阅读下面程序
   1  public class Try extends Thread{
   2    public static void main(

本题关键词:面试程序,阅读训练,阅读中枢,2-氨基-2-甲基-1-丙醇,程序,阅读新知法,1/2张含钠液,小儿阅读障碍,阅读理解策略,第2产程;

微信扫码获取答案解析
下载APP查看答案解析