SCJP 1.4 (93%)<br />SCJD (In progress. It can run, but it can't hide...)
SCJP 1.4 (93%)<br />SCJD (In progress. It can run, but it can't hide...)
byte d=(byte) (b>>>4);
i mean when b is a byte type data then is it that for all shits operations we'll first have to convert it to int then perfrom the shift and then again cast to byte...
Always remember that binary operation on two different type primitives cannot be performed without both of them being promoted to the broadest numeric type amongst them. I mean if one is byte and other is int we have to convert the byte variable to int and then perform the operation.