Do you know how to represent numbers from different bases in binary form? If you are taking

SCJP 6, don't even worry about this, since I don't think the bit operators are in the exam.

In any case, I think this is how it goes:

i = ox7A5;

i>>=3;

7A5 in hexadecimal is (each hexadecimal number is represented in 4 bits, and you pad with 0s to the left to make the total of 32 bits that an int variable has, assuming i is an int variable):

0000 0000 0000 0000 0000 0111 1010 0101

Then, you shift 3 positions to the right without sign extension:

0000 0000 0000 0000 0000 0000 1111 0100

This, in hexadecimal, is F4. So i will become 0xF4, which is 244 in decimal.