# Can someone explain to me what are, and why we use BITWISE operations?

**URL:** https://discourse.processing.org/t/can-someone-explain-to-me-what-are-and-why-we-use-bitwise-operations/36576
**Category:** Beginners
**Created:** [April 24, 2022, 5:53pm UTC](https://discourse.processing.org/t/can-someone-explain-to-me-what-are-and-why-we-use-bitwise-operations/36576 "2022-04-24T17:53:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![animanoir](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@animanoir](https://discourse.processing.org/u/animanoir)
#### Post date: [April 24, 2022, 5:53pm UTC](https://discourse.processing.org/t/can-someone-explain-to-me-what-are-and-why-we-use-bitwise-operations/36576/1 "2022-04-24T17:53:15Z")

</div>

I understand that they act _inside_ the bits of some value, but exactly what’s the theory and purpose behind them?

---

<div class="post-metadata">

### Author: ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)
#### Post date: [April 24, 2022, 7:01pm UTC](https://discourse.processing.org/t/can-someone-explain-to-me-what-are-and-why-we-use-bitwise-operations/36576/2 "2022-04-24T19:01:39Z")

</div>

Hi

[![](https://img.youtube.com/vi/lKGQU-d1Y6E/maxresdefault.jpg "Bitwise Operators Part 1: & | ^ ~ (Java)") ](https://www.youtube.com/watch?v=lKGQU-d1Y6E)

---

<div class="post-metadata">

### Author: ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)
#### Post date: [April 24, 2022, 7:04pm UTC](https://discourse.processing.org/t/can-someone-explain-to-me-what-are-and-why-we-use-bitwise-operations/36576/3 "2022-04-24T19:04:01Z")

</div>

> **[Java - Basic Operators](https://www.tutorialspoint.com/java/java_basic_operators.htm)**
>
> Java - Basic Operators, Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups −

---

<div class="post-metadata">

### Author: ![animanoir](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@animanoir](https://discourse.processing.org/u/animanoir)
#### Post date: [April 24, 2022, 7:37pm UTC](https://discourse.processing.org/t/can-someone-explain-to-me-what-are-and-why-we-use-bitwise-operations/36576/4 "2022-04-24T19:37:21Z")

</div>

Thanks for these selected resources
