题目

public class Threads4 {  public static void main (String[] args) {  new Threads4().go();  }  public void go() {  Runnable r = new Runnable() { public void run() {  System.out.print(”foo”);  }  };  Thread t = new Thread(r);  t.start();  t.start();  }  }  What is the result?() 

A、 Compilation fails.

B、 An exception is thrown at runtime.

C、 The code executes normally and prints „foo”.

D、 The code executes normally, but nothing is printed.

提示:未搜索到的试题可在搜索页快速提交,您可在会员中心"提交的题"快速查看答案。
答案
查看答案
相关试题

运行下列程序, 会产生什么结果()。

A、第一行会产生编译错误

B、第六行会产生编译错误

C、第六行会产生运行错误

D、程序会运行和启动

public class test(   public static void main(stringargs){   string foo = args [1];   string foo = args ;   string foo = args ;   }   )   And command line invocation:  Java Test red green blue  What is the result? () 

A、 Baz has the value of “”

B、 Baz has the value of null

C、 Baz has the value of “red”

D、 Baz has the value of “blue”

E、 Bax has the value of “green”

F、 The program throws an exception.

What is the operating system do Juniper Networks MX Series routers use?()

A、IOS

B、MX-OS

C、UNIX

D、Junos OS

在UNIX系统中,用来把一个进程的输出连接到另一个进程的输入的文件称为()。

A、普通文件

B、虚拟文件

C、管道文件

D、设备文件

在DOS环境下,用fdisk/mbr可以删除安装在mbr上的()或()。

联系我们 会员中心
返回顶部