Bitwise operator (位元運算)

Ref. Wiki
Bitwise operations are contrasted by byte-level operations which characterize the bitwise operators’ logical counterparts, the AND, OR and NOT operators. Instead of performing on individual bits, these operators perform on strings of eight bits (known as bytes) at a time. The reason for this is that a byte is normally the smallest unit of addressable memory (i.e. data with a unique memory address.)

  • AND
  • OR
  • XOR
  • ~

Ex. In Java

This entry was posted in 名詞解釋. Bookmark the permalink.