Why print the same values ​​for signed and unsigned vars in java?

Below are the values -2147483648 and -2147483648

int a = Integer.MIN_VALUE;

int b = -a;

System.out.println( a+ "   "+b);

      

Can anyone explain that the other value is not + ve? Is this due to boundary problems?

+3


source to share





All Articles