It is important to understand that an integer is just a number. There is no difference between:
int x = 0x10;
int x = 16;
Both end with integers with the same value. The first is written in the source code as hexadecimal, but it still represents the same value.
, , , , -. , , 4-15 , 0-11 .
, :
int afterMask = (a & 0xFFF0) >> 4;
, :
int afterMask = (a >> 4) & 0xFFF;
() 1596 = (hex) 63C.
, 12+, - , () 0x1263c5, , 0x63c.