|
-
Aug 17th, 2003, 11:56 PM
#1
Thread Starter
Addicted Member
garbage collection *resolved*
could somebody explain how java uses garbage collection to reclaim unused memory space?
From reading that I have done, I am not sure which way it goes about it:
my example:
TownBuilding = new Building("Town Hall"); //(a)
TownBuilding = new Building("Public Library"); //(b)
When b is coded, does java simply overwrite the contents or does it create a new Variable (b) and leave (a) for garbage collection?
Very confused...
Last edited by mbonfyre; Aug 18th, 2003 at 05:31 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|