Search:

Type: Posts; User: Cornix

Search: Search took 0.08 seconds.

  1. Re: Dooes the "removeNodeFromParent" method from DefaultTreeModel remove grandchildren?

    I am talking about things like this:

    public class GCExample {

    public static void main(String[] args) {
    A a1 = new A();
    A a2 = new A();

    a1.myA = a2;
    a2.myA = a1;
  2. Re: Dooes the "removeNodeFromParent" method from DefaultTreeModel remove grandchildren?

    It will not only collect objects with no reference pointing to them. It can also collect objects that are referenced.
    How exactly the gc works is not that important, but it might be something like a...
  3. Re: Dooes the "removeNodeFromParent" method from DefaultTreeModel remove grandchildren?

    You dont need to care about things like that. The garbage collector will find everything that is not using a System resource. (Threads, IO-Streams, etc)
    Dont try to over-optimize your code before...
Results 1 to 3 of 3