G
Guest
I have a link list; if I want to Clear the list do I have to set every node
in the list to null or I can simply set the Head/Tail nodes to null?
If I set Head/Tail to null, will the GC free any resources used by the nodes
between Head and Tail?
in the list to null or I can simply set the Head/Tail nodes to null?
If I set Head/Tail to null, will the GC free any resources used by the nodes
between Head and Tail?