Java closing/cleaning up

MuStormS3.com

New Member
I have a class that holds some big objects:\[code\]public class MyClass { BigObject bo; public MyClass() { ... }}\[/code\]Should i make a close method like the following:\[code\]public void close() { bo = null;}\[/code\]I think this is good for garbage collection (?) Am I on the right track? How should I approach the cleanup of this classes?
 
Back
Top