Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Yes, I agree that it is a good idea to set an object to null to inform the GC that it can go ahead and release the memory. But, I assume that the GC will be intelligent enough to know that for local automatic variables(objects) it will go ahead and release the memory for the object once the object is out of scope (when you exit the function). Do we need to explicitly set the object to null even in this case.
Replies:
|
Sponsored Links
|