Java OCA OCP Practice Question 1544

Question

Which of the following statements are true?

Select 2 options

  • A. The modulus operator % can only be used with integer operands.
  • B. & can have integral as well as boolean operands.
  • C. The arithmetic operators *, / and % have the same level of precedence.
  • D. && can have integer as well as boolean operands.
  • E. ~ can have integer as well as boolean operands.


Correct Options are  : B C

Note

integral types means byte, short, int, long, and char




PreviousNext

Related