Following is a piece of code -
<code>
public class BettyAck {
public static void main(
String argv[]){
BettyAck b =new BettyAck();
}
public BettyAck() {
Integer x = new Integer(10);
findOut(x);
Integer y = new Integer(99);
Integer z = y;
z = null;
findOut(y);
//here
}
public void findOut(Integer y){
y = null;
}
<\code>
I came to know that on the line " //here " in the above code,none of the objects will be eligible for garbage collection but I am not convinced with explanation given.Please can anyone explain me clearly why is it so?