This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I've usually used them in other languages in much lower-level stuff, interpreting flags and bitmaps from the operating system. I made a little class to convert from IBM mainframe packed decimal to integer the other day that used shift, & and | operations, again pretty low-level. Any other typical applications out there?
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
The bitwise operators are very rarely used in business applications. Their main advantage is speed, so they are used quite a lot in graphics-heavy applications (like games). In business-apps they are a liability in my opinion, as they hide logic in a very obscure, hard-to-decipher-afterwards way.
In five years I have yet to use them in a single functional program that I've written. However, it might be useful to learn them, at least well enough to pass certification, because you never know when you might end up at a job where that kind of knowledge might be useful.
Joined: Jan 26, 2004
Originally posted by Dirk Schreckmann: Shaik, Welcome to JavaRanch! We ain't got many rules 'round these parts, but we do got one. Please change your display name to comply with The JavaRanch Naming Policy. Thanks Pardner! Hope to see you 'round the Ranch!
Dirk Schreckmann, Shaik is my last name. Thanks Shaik.