« Home | JSP debugging in eclipse. » | Security, Exceptions and logging » | Linq stack over flow explanation. » | ECMA Script5 » | Javascript patterns / thoughts. » | Data structures and algorithms. » | Chess client interface in YUI. » | Unicode, things to know. » | Differences between myisam and innodb » | Removing unnecessary .svn folders from » 

Monday, December 14, 2015 

Bit wise operators usage.

And (&): An ideal use for this is to set up a mask to check the values of certain bits. 
Or(|): An ideal use for this is to ensure that certain bits are set. 
XOR(^): An ideal use for this is to toggle certain bits.
Right shift (>>): is divide by 2. Zerofill right shift (>>>)
Left shift (<<): is multiply by 2.