人力资本投资的重点在于它的()
A.未来导向性
B.现期收益性
C.潜力发掘性
D.可以塑造性
第1题
阅读下列代码段。 class Test implements Runnable{ public int run{ int i=0: while(true){ i++: System.OUt.println("i="+i); } } } 上述代码的编译结果是()。
A.程序通过编译并且run方法可以正常输出递增的i值
B.程序通过编译,调用run方法将不显示任何输出
C.程序不能通过编译,因为while的循环控制条件不能为“true”
D.程序不能通过编译,因为run方法的返回值类型不是void
第2题
阅读下列代码段。 class Test implements Runnable{ public int run{ int i=0: while(true){ i++: System.OUt.println("i="+i); } } } 上述代码的编译结果是()。
A.程序通过编译并且run方法可以正常输出递增的i值
B.程序通过编译,调用run方法将不显示任何输出
C.程序不能通过编译,因为while的循环控制条件不能为“true”
D.程序不能通过编译,因为run方法的返回值类型不是void
第3题
阅读下面代码 public class Test implements Runnable { public void run(Thread t) { System.out.println("Running"); } public static void main(String[] args) { Thread tt=new Thread(new Test()); tt.start(); } } 代码运行的结果是
A.将抛出一个异常
B.没有输出并正常结束
C.输出“Running”并正常结束
D.程序第2行将出现一个编译错误
第4题
阅读下面代码 class Test implements Runnable { public int run() { int i=0; while(true) { i++; System.out.println("i="+i); } } } 上述代码的编译结果是
A.程序通过编译,并且run()方法可以正常输出递增的i值
B.程序通过编译,调用run()方法将不显示任何输出
C.程序不能通过编译,因为while的循环控制条件不能为true
D.程序不能通过编译,因为run()方法的返回值类型不是void
第5题
阅读下面程序 public class Test implements Runnable{ public static void main(String[]args){ _______________________________________; t. start(); } public void mR(){ System. out. println("Hello!"); }} 在程序下画线处填入正确选项是
A.Test t=flew Test()
B.Thread t=new Thread();
C.Thread t=new Thread(new Test());
D.Test t=new Thread();
第6题
阅读下面程序 public class Test implements Runnable{ public static void main(String[]args){ _______________________________________; t. start(); } public void mR(){ System. out. println("Hello!"); }} 在程序下画线处填入正确选项是
A.Test t=flew Test()
B.Thread t=new Thread();
C.Thread t=new Thread(new Test());
D.Test t=new Thread();
第7题
A.A.public class X implements Runnable{ public void run(){......} }
B.B.public class X implements Thread{ public void run(){......} }
C.C.public class X implements Thread{ public int run(){......} }
D.D.public class X implements Runnable{ protected void run(){......} }
第8题
阅读下面程序 public class Test implements Runnable { public static void main(String[] args) { ______ t.start(); } public void run() { System.out.println("Hello!"); } } 程序中下画线处应填入的正确选项是
A.Test t=new Test();
B.Thread t=new Thread();
C.Thread t=new Thread(new Test());
D.Test t=new Thread();
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!