title: Does Composite object's reciprocal relationship cause memory leak in java
body: <p>Suppose we have following case. Should we face any memory leak here?</p>
  <pre><code>class A {
     B b;
     void set(B in) { b = in; }
  }
  
  class B {
    A a;
    void set(A in) { a = in; }
  }
  
  void main() {
     A ina = new A();
     B inb = new B();
     ina.set(inb);
     inb.set(ina);
  }
  </code></pre>