Java Tutorials-Java Operators (Bitwise Logical Operators)

Pubblicato il: 18 settembre 2014
sul canale di: Java Dukes
5,094
25

Java Dukes--
   / javadukes  

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--
   / javadukes  


In questa pagina del sito puoi guardare il video online Java Tutorials-Java Operators (Bitwise Logical Operators) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Java Dukes 18 settembre 2014, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 5,094 volte e gli è piaciuto 25 spettatori. Buona visione!