Pages

Jun 20, 2015

MIN_VALUE in Java

It is no difference between declaring a MIN_VALUE with a "-" notation or without a "-" notation in Java. Both of the variables will be -2147483648.
int min1 = -Integer.MIN_VALUE;
int min2 = Integer.MIN_VALUE;
//min1 = -2147483648
//min2 = -2147483648
view raw MIN_VALUE.java hosted with ❤ by GitHub

No comments:

Post a Comment