Visual Basic .NET <-> Java | Bitwise not
Visual Basic .NET Used keywords: not
not
Description
not par1
Input
- par1 - Any integer
Output
- Result - Integers
Examples
Visual Basic .NET
Bitwise not the possible of use:x = not(32 >>2) ' x = -9
y = not x ' y = 8
z = not(x and 5) and y ' z = 8
Visual Basic .NET
Even one example in what situations we can use the operation bitwise not:not i
not&Habcd
not(i and 4)
.
Java Used keywords: ~
~
Description
~ par1
Input
- par1 - Any integer
Output
- Result - Integers
Examples
Java
Bitwise not the possible of use:x = ~(32 >>2); // x = -9
y = ~x; // y = 8
z = ~(x & 5) & y; // z = 8
Java
Even one example in what situations we can use the operation bitwise not:~i
~0xabcd
~(i & 4)
You can find it in the following collections: bitwise operators
Bitwise not in another programming language:
Differences to: