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

1.public class GC{<br /> 2.private Objec to;<br /> 3.private void doSomethingElse(Object obj){o=obj;}<br /> 4.public void doSomething(){<br /> 5.Object o=new Object();<br /> 6.doSomethingElse(o);<br /> 7.o=new Object();<br /> 8.doSomethingElse(null);<br /> 9.o=null;<br /> 10.}<br /> 11.}<br /> When the doSomething method is called,after which line does the Object created in line 5 become available for garbage collection?()

A、Line5

B、Line6

C、Line7

D、Line8

E、Line9

F、Line10

更多“ 1.public class GC{<br /> 2.private Objec to;<br /> 3.private void doSomethingElse(Object obj){o=obj;}<br /> 4.public void doSomething(){<br /> 5.Object o=new Object();<br /> 6.doSomethingElse(o);<br /> 7.o=new Object();<br /> 8.doSomethingElse(null);<br /> 9.o=null;<br /> 10.}<br /> 11.}<br /> When the doSomething method is called,after which line does the Object created in line 5 become available for garbage collection?()”相关的问题
第1题

A、Foo { public int bar() { return 1; }  B、new Foo { public int bar() { return 1; }  C、new Foo() { public int bar() { return 1; }  D、new class Foo { public int bar() { return 1; }  

点击查看答案
第2题

A、public class MinMax<?> {  B、public class MinMax<? extends Number> {  C、public class MinMax<N extends Object> {  D、public class MinMax<N extends Number> {  E、public class MinMax<? extends Object> {  F、public class MinMax<N extends Integer> {  

点击查看答案
第3题

A、A. publicclass Thing { }  B、B. publicclass Thing { public Thing() {} }  C、C. publicclass Thing { public Thing(void) {} }  D、D. publicclass Thing { public Thing(String s) {} }  E、E. publicclass Thing { public void Thing() {} public Thing(String s) {} }  

点击查看答案
第5题

A、Foo{public int bar(){return 1;}}  B、new Foo{public int bar(){return 1;}}  C、new Foo(){public int bar(){return 1;}}  D、new class Foo{public int bar(){return 1;}}  

点击查看答案
第6题

A、public void HH{…}  B、publicclass Move(){…}  C、publicclass void number{}  D、publicclass Car{…}  

点击查看答案
第7题

A、publicclass B inherit A  B、publicclass B :: A  C、publicclass B : A  D、publicclass B from A  

点击查看答案
第9题

A、A.publicclass Circle implements Shape {private int radius;}  B、B.public abstract class Circle extends Shape {private int radius;}  C、C.publicclass Circle extends Shape {private int radius;public void draw();}  D、D.public abstract class Circle implements Shape { private int radius;public void draw();}  E、E.publicclass Circle extends Shape {private int radius;public void draw() {/* code here*/}}  

点击查看答案
第10题

A、 public interface Person{}  publicclass Employee extends Person{}  B、 public interface Shape{}  publicclass Employee extends Shape{}  C、 public interface Color{}  publicclass Employee extends Color{}  D、 publicclass Species{}  publicclass Animal (private Species species;)  E、 interface Component{}  Class Container implements Component (  Private Component[ ] children;  )  

点击查看答案
客服
TOP

请使用微信扫码支付

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