filmov
tv
Java Tutorials-Java Operators (Bitwise Logical Operators)

Показать описание
Java Dukes--
In this video You will Learn about Bit wise logical operator. Bit wise Operator works exactly the same as logic gates.The result of these operators depends on the Truth table of logic gates.There are 4 basic bit wise Logical operators.They are-
1. AND (&)
2. OR (|)
3. XOR (^)
4. NOT (~)
Bitwise Logical operators's symbols are exactly the same as that of Boolean Logical Operators.But Still there is a difference between them.In Bitwise Logical Operators there are two values on the either side of the operator , one on the left hand side and another on the right Hand side but in Boolean Logical operator there are two conditions on the either side of the operator one on the left hand side of the operator and Another on the right hand side of the operator. When we use bitwise logical operator then the values first get converted into binary sequence and after that the operations are performed on those binary sequences.
the first bitwise logical operator is AND.The result of this operator depends on the truth table of logic gate AND.the second Bitwise logical operator is OR its result depends on the truth table of logic gate OR.The third bitwise logical operator is XOR .The result of a xor operation depends on the truth table of logic gate XOR.The next bitwise logical operator is NOT.It is used to invert the value of variable here This operator inverts the binary sequence of a whole number it means that all 0's are replaced with 1's and vice-versa.
Java Dukes--
In this video You will Learn about Bit wise logical operator. Bit wise Operator works exactly the same as logic gates.The result of these operators depends on the Truth table of logic gates.There are 4 basic bit wise Logical operators.They are-
1. AND (&)
2. OR (|)
3. XOR (^)
4. NOT (~)
Bitwise Logical operators's symbols are exactly the same as that of Boolean Logical Operators.But Still there is a difference between them.In Bitwise Logical Operators there are two values on the either side of the operator , one on the left hand side and another on the right Hand side but in Boolean Logical operator there are two conditions on the either side of the operator one on the left hand side of the operator and Another on the right hand side of the operator. When we use bitwise logical operator then the values first get converted into binary sequence and after that the operations are performed on those binary sequences.
the first bitwise logical operator is AND.The result of this operator depends on the truth table of logic gate AND.the second Bitwise logical operator is OR its result depends on the truth table of logic gate OR.The third bitwise logical operator is XOR .The result of a xor operation depends on the truth table of logic gate XOR.The next bitwise logical operator is NOT.It is used to invert the value of variable here This operator inverts the binary sequence of a whole number it means that all 0's are replaced with 1's and vice-versa.
Java Dukes--
Комментарии