搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【多选题】

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

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.

更多“ 1.&#8194;class&#8194;TestA&#8194;{&#8194;<br /> 2.&#8194;TestB&#8194;b;&#8194;<br /> 3.&#8194;TestA()&#8194;{&#8194;<br /> 4.&#8194;b&#8194;=&#8194;new&#8194;TestB(this);&#8194;<br /> 5.&#8194;}&#8194;<br /> 6.&#8194;}&#8194;<br /> 7.&#8194;class&#8194;TestB&#8194;{&#8194;<br /> 8.&#8194;TestA&#8194;a;&#8194;<br /> 9.&#8194;TestB(TestA&#8194;a)&#8194;{&#8194;<br /> 10.&#8194;this.a&#8194;=&#8194;a;&#8194;<br /> 11.&#8194;}&#8194;<br /> 12.&#8194;}&#8194;<br /> 13.&#8194;class&#8194;TestAll&#8194;{&#8194;<br /> 14.&#8194;public&#8194;static&#8194;void&#8194;main&#8194;(String&#8194;args[])&#8194;{&#8194;<br /> 15.&#8194;new&#8194;TestAll().makeThings();<br /> 16.&#8194;//&#8194;...code&#8194;continues&#8194;on&#8194;<br /> 17.&#8194;}&#8194;<br /> 18.&#8194;void&#8194;makeThings()&#8194;{&#8194;<br /> 19.&#8194;TestA&#8194;test&#8194;=&#8194;new&#8194;TestA();<br /> 20.&#8194;}&#8194;<br /> 21.&#8194;}&#8194;<br /> Which&#8194;two&#8194;statements&#8194;are&#8194;true&#8194;after&#8194”相关的问题
第2题

A、 The description of the class and its purpose  B、 A list of methods in its super class  C、 A list of member variable  D、 The class hierarchy  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服