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

问题:

[单选]

1. class Test { 
2. private Demo d; 
3. void start() { 
4. d = new Demo(); 
5. this.takeDemo(d);
6. } 
7.  
8. void takeDemo(Demo demo) { 
9. demo = null; 
10. demo = new Demo();
11. } 
12. } 
When is the Demo object, created on line 3, eligible for garbage collection?()  

A .  After line 5.
B .  After line 9.
C .  After the start() method completes.
D .  When the takeDemo() method completes.
E .  When the instance running this code is made eligible for garbage collection.

蒙脱石 积磷菌在好氧条件下() 分解体内的聚磷产生磷酸盐而放磷。 分解体内的聚磷产生磷酸盐而吸磷。 分解体内聚-β-羟丁酸(PHB.产生产生乙酰CcA而放磷。 分解体内聚-β-羟丁酸(PHB.产生产生乙酰CcA而吸磷。 布坎南认为,政府政策的低效率是指所执行的政策不是最佳政策,这种政策不能确保()。 家庭负债主要是为了贷款投资或贷款消费。 如何选择砂糖?

1. class Test { 
2. private Demo d; 
3. void start() { 
4. d = new Demo(); 
5. this.takeDemo(d);
6. } 
7.  
8. void takeDemo(Demo demo) { 
9. demo = null; 
10. demo = new Demo();
11. } 
12. } 
When is the Demo object, created on line 3, eligible for garbage collection?()  

参考答案:

  参考解析

本题暂无解析

在线 客服