Hi Preetha!
Check out numbering over here.
https://coderanch.com/t/250859/java-programmer-SCJP/certification/Bitwise-Complement-Operator Then come to shifts,
a << 3
Actually means shift/remove left most 3 bits and add three zeros in the other end.
For ex.
if a = 0000 0101 1101 0011 0000 0000 0000 1101 then
a<<3 would be
0010 1110 1001 1000 0000 00 0001 1010
similarly,
>>4 means remove right most 4 bits and add four
sign bit yes sign-bit in the other end. (So +ve numbers will remain +ve and -ve will remain -ve)
>>> is called zero-filled shift. Same as above but fills zeros instead of sign bits. i.e. result will always be +ve. Hope this helps.
[ October 04, 2005: Message edited by: Akhil Trivedi ]
[ October 04, 2005: Message edited by: Akhil Trivedi ]