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 Big Data

Presentation about Technology of Search Engine

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

Book Report about Justice (by Michael J. Sandel)

Name: Justice: What's The Right Thing To Do? Author: Michael J. Sandel "Endless thoughts, endless choices. About Justice." Based on the Harvard college's lecture by Sandel, which is well known lecture for all students in the college. So, what is this book about? Its written on the book cover. Its about the justice. Then what is justice? And that is what this book is talking about. Different from other books talking about justice, this talks much understandable and interesting than other. Starting from the well known moral story "Workers on the railway", this book explains how justice is implemented in our society. I read nearly a few books in a year, this was the most interesting book I have read this year. This book let me know the happiness of reading something with deep thinking. The most unanswerable topic was related to the human being, it was "How much does a human cost?". I think this topic, the value of a human, shouldn't be calcu...