Freeing link list
Posted on 1998-07-06
I have a program which contains a complicate link-list. If I free the header of the link-list, does Java garbage collection free the whole link-list for me or do I need to remove the reference for each link in the list? Right now, I have a lot of memory problem with this program. Without destructor method like in C++, I don't know how to free all of instances of objects created by "new" methods.