Question on Java methods
<p>I got a question. I am given a linked-list Node with the parameter of A val and Node next. I also given a function call join which will join the end of list x to to y. </p>

<blockquote>
  <p><em>5 |-> 6 |-> 7 |-> null</em></p>
</blockquote>

<pre><code>Node x = new Node(5, new Node(6, new Node(7, null))); 
this.join(x, x) 

    public void join(Node x, Node y){
   if(x.next==null){
      x.next = y;
   }else{
     join(x.next, y);
   }
}
</code></pre>

<p>and when I get the length is only 3. Can I how come is not a stack overflow instead?</p>
