Java uses two's complement to represent negative nos.
u can represent 5 in binary as 00000101
so two;s complement of 5 will be -5 i.e frst invert all teh digits and then add 1 to it to get -5.
so -5 in binary will be 11111010 + 00000001 = 11111011
result of -5>>8 will be 1111 1111