cowardescent
Bluelighter
- Joined
- Jun 29, 2017
- Messages
- 404
I'm learning Java and going on the topic of bitwise operators. Specifically shifts and the OR operator. I'm curious if the or bitwise operator set the result bit to 1 if either two numbers are one. Must it be only one of the two numbers is one or can both be one? Isn't XOR the one where the numbers must be different for the result to be 1? Here is the table.
