Java OCA OCP Practice Question 516

Question

Fill in the blanks:

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

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


A.

Note

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

In Option C, the division operator / incorrectly comes after the increment ++ operator.

In Option D, the modulus operator % incorrectly comes after the increment ++ operator.

The correct answer is Option A, where the subtraction - and addition + operators are followed by the division / and multiplication * operators.




PreviousNext

Related