aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Garbage Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Garbage Collection" Watch "Garbage Collection" New topic
Author

Garbage Collection

Mathew Sam
Ranch Hand

Joined: Dec 19, 2001
Posts: 124

When the Object created in line1 is ready for garbage collection?.
Will it be ready just after line1 ?
[ June 11, 2002: Message edited by: Mathew Sam ]
Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Yes. There is no reference to the object after that line is executed, so it is eligible for garbage collection after line 1.
Corey


SCJP Tipline, etc.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Garbage Collection
 
Similar Threads
garbage collector......output.....?
Garbage Collection
is this object eligible for garbage collection??
Number of Objects eligible for Garbage Collection
garbage collection