title: if-statement with continue or break
body: <p>I'm doing the simulation of Java OCA test. During my study with the book "OCA - Study Guide" (Sybex), at the second chapter there is the following (Table 2.5, page 91):</p>
  
  <p>if - allows break statement:    NO</p>
  
  <p>if - allows continue statement: NO</p>
  
  <p>But during the simulation of Java OCA test, did by Sybex (online book OCA), there is this question:</p>
  
  <pre><code>int  x= 5;
      while (x&gt;=0) {
          int y = 3;
          while (y&gt;0) {
              if (x&lt;2)
                  continue;
              x--; y--;
              System.out.println(x*y + " ");
          }
      }
  </code></pre>
  
  <p>My answer was: It doesn't compile
  But the correct answer is: 
  8 
  3 
  0 
  2</p>
  
  <p>What is the correct information? 
  What is right (book or simulation test)?</p>
  
  <p>This is the table:</p>
  
  <p><a href="https://i.stack.imgur.com/i1Igf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/i1Igf.png" alt="Table 2.5 - page 91 - OCA Java book"></a> </p>
  
  <p>Thanks a lot!</p>