Recursive call on the java memory leaks
<pre><code>public class TailRecursionTest2 {   
    public static void main(String[] args) {   
        TailRecursionTest2 t = new TailRecursionTest2();   
        t.a(0);   
    }   
    public void a(int j) {   
        System.out.println(j);   
        j++;   
        if (j == 10000)   
            return;   
        List list = new Array List&lt;Integer&gt;(100000);   
} 
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
         at java.util.ArrayList. &lt;init&gt; (Unknown Source)
         at TailRecursionTest2.a (TailRecursionTest2.java: 17)
         at TailRecursionTest2.a (TailRecursionTest2.java: 20)
         at TailRecursionTest2.a (TailRecursionTest2.java: 20)
         at TailRecursionTest2.a (TailRecursionTest2.java: 20)
         at TailRecursionTest2.a (TailRecursionTest2.java: 20)
</code></pre>
