题目内容

1. class TestA { 2. TestB b; 3. TestA() { 4. b = new TestB(this); 5. } 6. } 7. class TestB { 8. TestA a; 9. TestB(TestA a) { 10. this.a = a; 11. } 12. } 13. class TestAll { 14. public static void main (String args[]) { 15. new TestAll().makeThings(); 16. // ...code continues on 17. } 18. void makeThings() { 19. TestA test = new TestA(); 20. } 21. } Which two statements are true after line 15, before main completes?()

A. Line 15 causes a stack overflow.
B. An exception is thrown at runtime.
C. The object referenced by a is eligible for garbage collection.
D. The object referenced by b is eligible for garbage collection.
E. The object referenced by a is not eligible for garbage collection.
F. The object referenced by b is not eligible for garbage collection.

查看答案
更多问题

以下关于动物对温度适应的说法,不正确的是:()

A. 总体而言,变温动物的平均寿命随温度的增加而缩短
B. 哺乳动物在低温下均会保持相对恒定的体温,两栖类的体温会随环境温度的降低而变化
C. 在温暖地区,蚜虫完成发育的时间比寒冷的地区长
D. 温度是动物分布的限制因子之一,最主要的是某地区的平均温度

甲的丈夫乙自1995年1月外出打工后一直下落不明,2001年经甲申请,法院依法判决宣告乙死亡。不久,甲、乙二人的女儿丙由丁合法收养。2003年甲与戊登记结婚。2005年乙突然回家,法院依法撤销了对其的死亡宣告。现乙主张与甲自动恢复婚姻关系;并告知丁,当初收养丙未经其同意,完全由甲一人作主,是无效的,主张解除此收养关系。 乙的主张是否成立?为什么?

预防性病的主要措施有哪些?

总和的或扩大的价值形式是指()

A. 一种商品的价值表现在与它相交换的一种商品上
B. 一系列商品的价值表现在与它相交换的一种商品上
C. 一种商品的价值表现在与它相交换的一系列商品上
D. 一系列商品的价值表现在与它相交换的一系列商品上

答案查题题库