Home » JAVA Programming » Basic Operators » Question
  1. Which of the following operators can operate on a boolean variable?

    1. &&
    2. ==
    3. ?:
    4. +=
    1. 1 & 4
    2. 1, 2 & 3
    3. 1, 2 & 4
    4. 3 & 2
    5. None of these
Correct Option: B

Operator Short circuit AND, &&, equal to, == , ternary if-then-else, ?:, are boolean logical operators. += is an arithmetic operator it can operate only on numeric values.



Your comments will be displayed only after manual approval.