Java- && Evaluation
<p>Can anybody help me on following issue:</p>

<p>I have code like:</p>

<pre><code>if(cond1 &amp;&amp; cond2 &amp;&amp; .. &amp;&amp; cond10)
</code></pre>

<p>Here, cond1 are expensive operations whose output is Boolean.</p>

<p>Now my question is what JAVAC will do, when cond2 output is false. Specifically, is it goes evaluate cond3 's output or stops evaluation ?</p>

<p>More illustratively,</p>

<pre><code>if(cond1 &amp;&amp; cond2 &amp;&amp; .. &amp;&amp; cond10)
  //do this
</code></pre>

<p>and</p>

<pre><code>if(cond1){
  if(cond2){
         .
         .
         .
        if(cond10){
             //do this
                   }
</code></pre>

<p>are same in java (in case of execution way) ?</p>
