试题详情
- 单项选择题 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.
- B
关注下方微信公众号,在线模考后查看
热门试题
- Given a f
- abstract class
- StringBuffer对象中的值是不可
- What is th
- Which three&ens
- Given the&ensp
- Which the JSTL
- 说明基本数据类型与引用类型的差别。
- Swing GUI通常由哪几
- 一球从100米高度自由落下,每次落地后反
- 1. abstract&en
- class TestApp{
- Given theQ
- 11.class Snoochy{ 1
- 在 myjsp.jsp&ens
- public class&e
- 下列有关类、对象和实例的叙述,正确的是哪
- 简述对象、类和实体及它们之间的相互关系。
- Map接口中的方法EntrySet()返
- Which two