title: Behaviour of return statement in catch and finally
body: <p>Please see the following code and explain the output behavior.</p>
  
  <pre><code>public class MyFinalTest {
  
      public int doMethod(){
          try{
              throw new Exception();
          }
          catch(Exception ex){
              return 5;
          }
          finally{
              return 10;
          }
      }
  
      public static void main(String[] args) {
  
          MyFinalTest testEx = new MyFinalTest();
          int rVal = testEx.doMethod();
          System.out.println("The return Val : "+rVal);
      }
  
  }
  </code></pre>
  
  <p>The result is the return Val : 10.</p>
  
  <p>Eclipse shows a warning: <code>finally block does not complete normally</code>.</p>
  
  <p>What happens to the return statement in catch block ?</p>