试题详情
- 单项选择题 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.
- D
关注下方微信公众号,在线模考后查看
热门试题
- 说明抽象类和接口的异同。
- What is th
- Which two clas
- 11. public&ens
- 从键盘上输入10个整数,并放入一个一维数
- 绘出以下函数的曲线:y=5*sin(x)
- public class&e
- 移位和按位运算符有哪些作用?()
- 举例说明getter和setter方法的
- What is th
- Under whatQ
- @see标记有几种格式?()
- 创建一个复数类complex,对复数进行
- 编写一个字符界面的JavaApplica
- public class&e
- In a JSP-
- Which methods&
- Which the two
- Java中的引用变量需要初始化,简单变量
- 下面选项中哪些不是Java关键字()