欢迎来到PP题库网 PP题库官网
logo
全部科目 > Java认证考试 > 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.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题