易搜题 > 资格证大类 > 计算机编程 > 问题详情
问题详情

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.

未找到的试题在搜索页框底部可快速提交,在会员中心"提交的题"查看可解决状态。 收藏该题
查看答案

相关问题推荐

联系客服 会员中心
TOP