Discussion :: JAVA MCQs
-
Which of the following operators can operate on a boolean variable?
1. &&
2. ==
3. ?:
4. +=
Answer : Option D
Explanation :
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.
Be The First To Comment