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
Posted by Kumar on January 21, 2001 at 11:45 PM
Our project team is venturing on a new large scale project in Java. In doing some evaluations, naturally we discussed the topic of Garbage collection.
The garbage collection in Java is automatic and we don't have any control when an object is actually garbage collected.
We are thinking about setting the objects to null after they have been used. Is this a good coding technique, or are there better techniques involved.
Appreciate some help on this.
SomeClass a = new SomeClass();
a = null;
- Bruce Eckel Ivan Villanueva January 22, 2001 at 7:34 AM