title: Two conditions in one if statement does the second matter if the first is false?
body: <p>Okay, so I have this piece of code tested and I found there isn't any exception thrown out. </p>
  
  <pre><code>public static void main(String[] args) {
      int[] list = {1,2};
      if (list.length&gt;2 &amp;&amp; list[3] == 2){
          System.out.println(list[1]);
      }
  }
  </code></pre>
  
  <p>Does the statement here</p>
  
  <pre><code>if (list.length&gt;2 &amp;&amp; list[3] == 2)
  </code></pre>
  
  <p>mean that if the first condition is false we don't even have to check the second condition?</p>
  
  <p>Or it equals to </p>
  
  <pre><code>if (list.length&gt;2){
      if (list[3] == 2){
          ...
      }
  }
  </code></pre>
  
  <p>?</p>
  
  <p>And, what if it is written in C or python or some other languages?</p>
  
  <p>Thanks</p>