移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

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?()  

发布日期:2021-09-28

public class Foo implements Runnable (  public voi...
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 6 causes the compilation to fail.

E

“Running” is printed and the program exits.

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!