Skip to content

Glossary: Algorithms Beyond the Basics in Java

bit operators

Also written: &, |, ^, ~, <<, >>, >>>, shift left, shift right

Operators that work on each bit of a number separately: `&` and, `|` or, `^` XOR, `~` not, `<<` shift left (doubles), `>>` shift right (halves, keeps the sign), and `>>>` shift right filling with zeros.

Where the book teaches it

Related terms

bitmasksign bit