Skip to main content

About bitwise and bit shift operands

We are getting to know about Java's basics.

Java has the bitwise operators. (which all other advanced programming language do either)

There are several operands of them.

Bitwise operators
  • & opreator
    • Performs an and calculation between data bits
  • ^ opreator
    • Performs an or calculation between data bits
  • | opreator
    • Performs a xor calculation between data bits
  • ~ operator
    • Inverts all data bits
Bitshift operators
  • << operator
    • Shifts the bit pattern to the left
  • >> operator
    • Shifts the bit pattern to the right
  • >>> operator
    • Shifts the zero to the leftmost position
These are the opreators. which is never used.

Even the Java Documentation says these are "less commonly used".


So just make sure you 'heard' of these exists.

Check out more about these operators here: Official Java Documentation

Popular posts from this blog

Presentation about Technology of Search Engine

The slides won't be able to read easily because of the animation objects.

Presentation about Big Data

About python's programmatic flow

Is python object-oriented ? - Yes. So does it follow the object-oriented style programmatic flow? Lets check out. Here I have a short python code. Let's see the 6th line. If we call the function above the function itself, it will return the error which looks like this; This occurs because its called above the repeat_lyrics(); 's initialization. So from this, we can comprehend that python is a object-oriented  language, but the programmatic flow  doesn't follow the object-oriented style flow . Its complicated to work with this, (this probably is a bad practice) just call all functions above the working code.