Bitwise operations in Java