title: What's the difference between using an else if statement and just creating a new if statement?
body: <p>What's the point in making an else if statement when you could just make another if statement? i.e</p>
  
  <p>With an else statement:</p>
  
  <pre><code>if (x &gt; 1) {
      System.out.println("Hello!");
  }else if (x &lt; 1) {
      System.out.println("Bye!");
  }
  </code></pre>
  
  <p>Without an else statement:</p>
  
  <pre><code>if (x &gt; 1) {
      System.out.println("Hello!");
  }
  if (x &lt; 1) {
      System.out.println("Bye!");
  }
  </code></pre>
  
  <p>Both codes give out the same solution, so what's the point typing 'else' when the output is no difference?</p>