监测时间和频率的确定,主要考虑当地的气象条件和人们的生活、工作规律。三级评价项目可作()期监测。
监测时间和频率的确定,主要考虑当地的气象条件和人们的生活、工作规律。三级评价项目可作()期监测。
A.一
B.二
C.三
D.四
监测时间和频率的确定,主要考虑当地的气象条件和人们的生活、工作规律。三级评价项目可作()期监测。
A.一
B.二
C.三
D.四
第1题
阅读下面程序 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行的extends Thread改为implements Runnable
B.将第3行的new Try()改为new Thread()
C.将第4行的t.start()改为start(t)
D.将第7行的public void run(int j)改为public void run()
第2题
(28 )阅读下面程序
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 行的 extends Thread 改为 implements Runnable
B )将第 3 行的 new Try() 改为 new Thread()
C )将第 4 行 t.start() 改为 start(t)
D )将第 7 行的 public void run(int j) 改为 public void run()
第3题
阅读下面程序 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行的extends Thread改为implements Runnable
B.将第3行的new Try()改为new Thread()
C.将第4行t.start()改为start(t)
D.将第7行的public void run(int j)改为public void run()
第4题
阅读下面程序 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行的extends Thread改为implements Runnable
B.将第3行的new Try()改为new Thread()
C.将第4行t.start()改为start(t)
D.将第7行的public void run(int j)改为public void run()
第5题
3阅读下面程序 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.pfintln("祝你成功"); 11 i++; 12 } 13 } 14 } 该程序要求打印5行“祝你成功”必须改正程序中的某行代码,程序才能完成。选择正确的修改是()。
A.将第1行的extends Thread改为implements Runnable
B.将第3行的new Try()改为new Thread()
C.将第4行t.sta.rt()改为start(t)
D.将第7行的publ void run(int j)改为public void run()
第6题
阅读下面程序 1 public class Try extends Thread{ 2 public static void main(String args[]){ 3Try t=new Try; 4 t.start; 5} 6 7 public void run(intj){ 8 inti=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行的public void run(intj)改为public void run
第7题
下列程序创建了一个线程并运行,请在下划线处填入正确代码。
public class Try extends Thread{
public static void main(String args[]){
Threadt=new Try();
【 】;
}
public void run(){
System.out.println(“Try!”);
}
}
第8题
第9题
阅读下面程序 public class Test2 ______ { public static void main(String[] args) { Thread t=new Test2(); t.start(); } public void run() { System.out.println("How are you."); } } 程序中下画线处应填入的正确选项是
A.implements Thread
B.extends Runnable
C.implements Runnable
D.extends Thread
第10题
阅读下面程序 public class Test2______ { public static void main(String[] args){ Thread t=new Test2(); t. start(); } public void run(){ System. out. priatln("How are you. "); } } 在程序下画线处填入的正确的选项是
A.implements Thread
B.extends Runnable
C.implements Runnable
D.extends Thread
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!