title: Is it necessary to write else part , if we have written the else-if part, in Java?
body: <p>Is it necessary to write else part , if we have written the else-if part, in Java?</p>
  <p>for example</p>
  <pre><code>if(i&gt;10){
     //some code here
  }
  else if(i&lt;10 &amp;&amp; i&gt;5){
        //some code here
  }
  else{
     //so in cases like this do we need to make, this else part??
  }
  </code></pre>