Java OCA OCP Practice Question 1110

Question

What describes the order in which the three expressions appear in a for loop?

  • A. boolean conditional, initialization expression, update statement
  • B. initialization expression, boolean conditional, update statement
  • C. initialization expression, update statement, boolean conditional
  • D. None of the above


B.

Note

In a for loop, the segments are an initialization expression, a boolean conditional, and an update statement in that order. Therefore, Option B is correct.




PreviousNext

Related