I'am a Chinese.I like Java.Hello.
Yunnan Zhou wrote:GC will no be started.
SCJA 6 (Studying for SCJP 6)
Yunnan Zhou wrote:...when you set a object to null, you just tell GC that it can be recovered . but you don't know when the GC will start.it's uncertain.
Generally speaking,when you memory is not enough,GC will start...
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Peeyush Bhadola wrote:At line#10: c3 = null. So there is no object present to be marked for GC.
SCJA 6 (Studying for SCJP 6)
Jared Malcolm wrote:I think you may misunderstand GC.
Peeyush Bhadola wrote:At line#10: c3 = null. So there is no object present to be marked for GC.
Jared Malcolm wrote:if an object no longer has a reference pointing to it...that's the point at which it is ELIGIBLE to become GC'd
Peeyush Bhadola wrote:At line#11: c1 = null. That means the remote control(reference) c1 is not pointing to any object and hence the object created at line#8 can be marked for GC.
archu sweet wrote:c2=null
No.archu sweet wrote:. . . ..am i correct??