int n=64; int answer = n>>5; System.out.println(answer); output is [64/pow(2,5)]= 2
but if n = -64 int answer = n>>5; System.out.println(answer); output is [(-64/pow(2,5))-1]= [(-64/32)-1]= -3 but on running output is -2 (not -3) WHY ??
Hi Barry Gaunt, What is problem with you? Are you not feeling well. Hey man i just told you the topic, from name you can find that topic from same directory of Javaranch under Sun Certification.