Java Bit Manipulation Questions