SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Ananth Chellathurai [Walk on software]
Originally posted by sweety sinha:
this question is from examguide.com
class C
{
public static void main(String a[])
{
C c1=new C();
C c2=m1(c1);
C c3=new C();
c2=c3; //6
anothermethod();
}
static C m1(C ob1){
ob1 =new C();
return ob1;
}
}
After line 6, how many objects are eligible for garbage collection?
the answer given is 2. how???
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Thanks,<br />Srilatha M
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Lakshmanan Arun
http://devtoolzone.com
Preparing for SCJP 6.0
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Originally posted by sweety sinha:
this question is from examguide.com
class C
{
public static void main(String a[])
{
C c1=new C();
C c2=m1(c1);
C c3=new C();
c2=c3; //6
anothermethod();
}
static C m1(C ob1){
ob1 =new C();
return ob1;
}
}
After line 6, how many objects are eligible for garbage collection?
the answer given is 2. how???
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |