Recursion question
<p>Ok so i am just learning recursion and i am confused on one point. 
This is the code</p>

<pre><code>public class RecursiveDemo {
  public static void showRecursion (int num) {
   System.out.println("Entering method. num = " + num);
    if (num &gt; 1) {
      showRecursion(num - 1);
    }
    System.out.println("Leaving method. num = " + num);
  }

  public static void main(String[] args){
    showRecursion(2);
  }
}
</code></pre>

<p>The output i am getting is :</p>

<pre><code>Entering method. num = 2
Entering method. num = 1
Leaving method. num = 1
Leaving method. num = 2
</code></pre>

<p>My question is why am i getting the output "Leaving method. num = 2". Shouldn't it stop at "Leaving method. num = 1" since num has already reached 1?</p>
