0
what is the use of bit wise operators?
except (AND & OR) operators. where can we use other operators in java
2 Answers
+ 2
These days, even gigabytes of memory is dirt cheap.
However decades ago, memory was a scarce resource, where literally every bit counts. So it was important to have some ways to manipulate memory directly on a low level.
Today these operators are hardly ever used in business applications, except for very specific situations. There are even today use cases for high code efficiency requirement, for example IoT devices that run on very limited resources. Complex mathematic algorithms, especially in cryptography, can still find uses for bitwise magic. And you can find a few real life tricks where they can be applied, here:
https://blog.tarkalabs.com/real-world-uses-of-bitwise-operators-c41429df507f
+ 1
bitmap graphic tools
fast algorithm's tricks for math api
char manipulation
electronic logic cirquit simulators