Search:

Type: Posts; User: dudushr

Search: Search took 0.24 seconds.

  1. Replies
    6
    Views
    226

    Re: Question about garbage collection

    Aussiemcgr and Copeg thanks for helping me.
    I have also tested the code with finalize and saw that the garbage collection removed only one object.

    I have learnt something new.

    Thanks a lot
  2. Replies
    6
    Views
    226

    Re: Question about garbage collection

    Thanks a lot for the answer
  3. Replies
    6
    Views
    226

    Question about garbage collection

    Dear programmers

    While navigating in the internet I have seen the following Question:

    class C{
    public static void main(String a[]){
    C c1=new C();
    C c2=m1(c1);
    C c3=new C();
    c2=c3;...
Results 1 to 3 of 3