Hello,
I am unable to understand the output of the following code:
class EBH019 {
public static void main (
String args[]) {
int i1 = 0xffffffff, i2 = i1 << 1;
int i3 = i1 >> 1, i4 = i1 >>> 1;
System.out.print(Integer.toHexString(i2) + ",");
System.out.print(Integer.toHexString(i3) + ",");
System.out.print(Integer.toHexString(i4));
}}
Output:
fffffffe,ffffffff,7fffffff
can anyone provide me the sequence of steps as to know how this output is generated?
Regards,
Mathangi.