Recursively calling a function in the exception clause
<p>I would like to retry calling a function in the exception clause like this:</p>

<pre><code>private int mTries = 0;
private void myFunction() {
    try {
      // do something 
    } catch (Exception e) {
        if (mTries ++ &lt; MAX_TRIES;
             myFunction();
        }
    }
}
</code></pre>

<p>My question, regardless the stack memory usage,  calling a function recursively in the catch clause the same as calling it in normal case? I am wonder if doing this will blow off the stack, if my app is running on android platform.</p>

<pre><code>private void anotherFunction(int i) {
      if (i == 0)
            return;
      anotherFunction(i--);
}
</code></pre>
