ICSE Class 9 Computer Applications Question 1 of 21

Operators in Java — Question 1

Back to all questions
1
Question

Question 1

What are logical operators? Give an example of each.

Answer

Logical operators operate only on boolean operands and are used to construct complex decision-making expressions. Some of the logical operators are given below:

OperatorSymbol
Logical AND&&
Logical OR||
Logical NOT!