One of hundreds of answers available with our premium content service.
A: Java bitwise operators act on the binary representation of primitive numbers int and long. Bitwise shift operators perform low level mathematical actions as if they physically shift binary digits left and right. The bitwise logical operators compare numbers bit by bit and transform them according to boolean logic. The examples below show how the 32 bit binary values are transformed by each operator and highlight some significant exceptions in the the use of shift operators in mathematics.
… full answer hidden
Premium members click below for full answer
What are bitwise and bit shift operators?
We love social media, but we do not expect you to create yet another public outpost on the Web.