Java OCA OCP Practice Question 1369

Question

Which operators will always evaluate all the operands?

Select 2 options

  • A. &&
  • B. |
  • C. ||
  • D. ? :
  • E. %


Correct Options are  : B E

Note

|| and && are known as short circuit operators.

They do not evaluate the rest of the expression if the value of the expression can be determined by just evaluating part of the expression.




PreviousNext

Related