Owl Teach Yourself Java 2 in 21 Days Pro, Third Edition
HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / THANKS
ROGERS CADENHEAD

Day 27: Creating Web Services with XML-RPC

Certification Practice

Each chapter of the book ends with a Certification Practice question that's comparable to what you could expect to be asked on a Java certification test. Here's the answer for chapter 27:

Answer (b) is correct. A for loop must have three sections separated by semi-colon (";") characters, an initialization section in which one or more variables is created, a test section that contains an expression that must be true for the loop to continue, and an increment section that changes the value of one or more variables. Even if a section is not needed, it must be separated from other sections with semi-colons. The erroneous statement can be fixed by changing it to for ( ; i < 10; i++) {.

Answers (a), (c), and (d) are incorrect. Edit

Return to Day 27

HOME / FEEDBACK / ORDER THE BOOK / OTHER BOOKS / THANKS

Valid HTML 4.01!

Valid CSS!