Java OCA OCP Practice Question 491

Question

Fill in the blanks:

The operators +, ___ , ___, ___, and ++ are listed in the same or increasing level of operator precedence.

  • A. *, --, /
  • B. %, -, *
  • C. /, *, %
  • D. *, -, /


C.

Note

In Option A, the division operator / incorrectly comes after the decrement -- operator.

In Option B, the subtraction operator - incorrectly comes after the modulus % operator.

In Option D, the division operator / incorrectly comes after the subtraction - operator.

The correct answer is Option C, where all three operators have the same order of precedence.




PreviousNext

Related