title: Does Java compiler understand two returns?
body: <p>Is it safe to write something like this in java?</p>
  
  <pre><code>if(var==2){
   return true;
  }
  return false;
  </code></pre>
  
  <p>Somehow, while debugging, the compiler executes the first return, and goes to the second.
  Shouldnt the method be terminated after the first return?</p>