title: Loop construct logic in OCA sample quiz
body: <p>This was a question on my sample OCA Java quiz.  The book says I answered incorrectly.  I walked through the logic again, and even ran it through netbeans ide to make sure.  The output was in fact my original answer, not the answer the book says is correct.  I am confused, can someone please verify! </p>
  
  <p>Question:  </p>
  
  <pre><code>import static java.lang.System.*;
  class _ {
     static public void main (String [] __A_V_) {
     String $ = "";
  
     for (int x=0; ++x &lt; __A_V_.length; )
         $ += __A_V_[x];
  
     out.println($);
     }
  }
  </code></pre>
  
  <p>And the command line: <code>Java _ - A .</code></p>
  
  <p>What is the result:</p>
  
  <p>(A) -A</p>
  
  <p>(B) A.</p>
  
  <p>(C) -A.</p>
  
  <p>(D) _A.</p>
  
  <p>(E) _-A.</p>
  
  <p>(F) Compilation fails</p>
  
  <p>(G) An exeception is thrown at runtime</p>
  
  <p>I followed the logic and originally came to the answer of (c).</p>
  
  <p>The book says (b) is correct.  Here is the book's explanation: "This question is using valid (but inappropriate and weird) identifiers, static imports, main(), and pre-incrementing logic.</p>
  
  <p>I checked with the IDE and it verified I was correct with the answer of (c).</p>
  
  <p>Is the book incorrect or am I missing something?</p>