title: Evaluation of && boolean operator
body: <p>If i have the following if statement</p>
  
  <pre><code>if ( (row != -1) &amp;&amp; (array[row][col] != 10) ) {
      ....
  }
  </code></pre>
  
  <p>Where <code>row</code> is an <code>int</code> value and <code>array</code> is an <code>int[][]</code> object.</p>
  
  <p>My question is, if this will throw an exception if row = -1 as the array won't have a -1 field, so out of bounds exception? Or will it stop at the first part of the if, the (row!=-1) and because that is false, it will ignore the rest?
  Or to be sure it doesn't throw exception, i should separate the above if statement into two?</p>
  
  <p>(Pls, don't tell me to check this out for my self :) I'm asking here 'cause i wanna ask a followup question as well ...)</p>