I have doubt in this program
1. public class BettyAck{
2. public static void main(
String argv[]){
3. BettyAck b =new BettyAck();
4. }
5. public BettyAck() {
6. Integer x = new Integer(10);
7. findOut(x);
8. Integer y = new Integer(99);
9. Integer z = y;
10. z = null;
11. findOut(y);
12. //here
13. }
14. public void findOut(Integer y){
15. y = null;
16.
17. }
18.}
my answer for this program is 3 objects are eligible for garbage collection.Is it correct or not?
Please anyone help me
with regards
prema