title: In Java, is this considered an example of a "nested IF statement"?
body: <p>Here we have a long-standing assumption that needs to be cleared up in my head. Is the following an example of nesting 'if' statements:</p>
  
  <pre><code>if (...)
    ...;
  else if (...)
    ...;
  </code></pre>
  
  <p>I was under the impression that nesting required an 'if' inside another 'if', like so:</p>
  
  <pre><code>if (...)
    if (...)
      ...;
  </code></pre>
  
  <p>or at least a clear separation of scope when you nest inside an else, like so:</p>
  
  <pre><code>if (...)
    ...;
  else { //if the next statement didn't 
         //exist, then the curly brace changes nothing?
    ...;
    if (...)
      ...;
  }
  </code></pre>
  
  <p>This might boil down to how the compiler interprets things, whether the 'if' in else-ifs are considered in the same level as the parent if, or whether they create "new" 'if' statements.  Thank you for your time!</p>
  
  <p>edit:  I ask because I am a TA in a java lab, and the topic of the day was nested-ifs. In the end, I found out that the teacher considered my first example to be valid for "nested if statements".</p>