I got little code here
int b=3;
b=b >> 1;
System.out.println(b);
It works perfectly, but when I change variable b to byte,short,float,double it contains errors, but with variables int and long it works perfectly, why it doesn't work with other variables?