关于垃圾回收器的题目
1public class test{
2 private Object o;
3 private void doSomethingElse(Object obj){o = obj;}
4 public void doSomething(){
5 Object o = new Object();
6 doSomethingElse(o);
7 o = new Object();
8 doSomethingElse(null);
9 o = null;
10 }
11 public static void main(String[] args){
12 new test().doSomething();
13 }
14}
在哪行之后第5行创建的Object become available for garbage collection(原谅我实在不想翻译这一句)