Bitwise Operators in Java: What They Are, Where They Came From, and When to Use Them
In short: use bitwise operators in Java when the problem is genuinely binary. That means compact permissions and flags (hand-written bit masks, as in hardware registers; in everyday application code, prefer EnumSet, …