Infinite child object type : <p>I need to create a Parent and Child class but A child class might contain Parent class, How can I do that in java?</p>

<p>For example:</p>

<pre><code>ParentClass {
  ChildClass childClass;
}

ChildClass {
  ParentClass parentClass;
}
</code></pre>

<p>is this possible? and if possible, what is the term in Java?</p>
