Bitwise operations are faster and secure. Highly used in Security/Encryption, Finite State Machines, Graphics, Comunication over ports/sockets, and Bit Fields. Java has support for: AND, OR, Complement, Signed/Unsigned Right Shift, Signed Left Shift. Java does not have Unsigned Left Shift. Today I want to share a simple POC showing all these operations and understanding them in detail. So Let’s get started!

The Video

The Code

Originally published at http://diego-pacheco.blogspot.com on July 2, 2021.