Boolean logical operators operate only on
boolean operands. These operators combine one or two boolean values to form a new boolean depending upon the operation. Logical operators produce results or outputs in the form of boolean values i.e., either true or false.
The logical operators are used when we want to form compound conditions by combining two or more relations.
example : a > b && X == 25 The following logical operators are supported for boolean type.The below boolean logical table shows the results of various operators. This table is important and needs to be remembered for future. Boolean Logic CODE class BoolLogic OUTPUT a = true DESCRIPTION
|