当前位置:SCJP程序员认证考试题库

问题:

[单选]

public class A extends Thread { 
A() { 
setDaemon(true); 
} 
public void run() { 
(new B()).start(); 
try { 
Thread.sleep(60000); 
} catch (InterruptedException x) {} 
System.out.println(“A done”); 
} 
class B extends Thread { 
public void run() { 
try { 
Thread.sleep(60000); 
} catch (InterruptedException x) {} 
System.out.println(“B done”); 
} 
} 
public static void main(String[] args) { 
(new A()).start(); 
} 
}  
What is the result?()  

A .  A done
B .  B done
C .  A done B done
D .  B done A done
E .  There is no exception that the application will print anything.
F .  The application outputs “A done” and “B done”, in no guaranteed order.

蛋白质是人体唯一的氢的来源。 编制项目进度控制的工作流程、进行有关进度控制会议的组织设计,这属于进度控制的()。 技术措施。 经济措施。 组织措施。 管理措施。 储配站具有()等功能 接受气源并进行储存、控制气量分配、计量。 接受气源并进行调压、气量分配、计量。 接受气源并进行储存、控制供气压力、气量分配和计量。 传染病就是流行病。 文学接受

public class A extends Thread { 
A() { 
setDaemon(true); 
} 
public void run() { 
(new B()).start(); 
try { 
Thread.sleep(60000); 
} catch (InterruptedException x) {} 
System.out.println(“A done”); 
} 
class B extends Thread { 
public void run() { 
try { 
Thread.sleep(60000); 
} catch (InterruptedException x) {} 
System.out.println(“B done”); 
} 
} 
public static void main(String[] args) { 
(new A()).start(); 
} 
}  
What is the result?()  

参考答案:

  参考解析

本题暂无解析

在线 客服