Infinite Recursion in Java? : <p>Obviously the following recursion in Java will cause stack overflow error:</p>

<pre><code>public class XXX {
    public static void main(String[] args) {
        main(null);
    }
}
</code></pre>

<p>But what if I catch this error and invoke the function again?</p>

<pre><code>public class XXX {
    public static void main(String[] args) {
        try {
            main(null);
        } catch(StackOverflowError E) {
            main(null);
        }
    }
}
</code></pre>

<p>how does it perform then??</p>
