当前位置:SCJP程序员认证考试题库

问题:

[单选]

 public class Foo implements Runnable (  
public void run (Thread t) {  
system.out.printIn(“Running.”);  
}  
public static void main (String args) {  
new thread (new Foo()).start();  
}  
)  
What is the result?()  

A .  An exception is thrown.
B .  The program exists without printing anything.
C .  An error at line 1 causes compilation to fail.
D .  An error at line 2 causes the compilation to fail.
E .  “Running” is printed and the program exits.

科技成果一般可以分为两类,即理论成果和应用成果。 新任务采购(newtask) 吴军博士认为,所有未来的公司,某种程度上都是大数据公司。 准静力条件 多态模型

 public class Foo implements Runnable (  
public void run (Thread t) {  
system.out.printIn(“Running.”);  
}  
public static void main (String args) {  
new thread (new Foo()).start();  
}  
)  
What is the result?()  

参考答案:

  参考解析

本题暂无解析

在线 客服