Hi,
-Integer.MIN_VALUE= Integer.MAX_VALUE+1
and
Integer.MAX_VLAUE+x= Integer.MIN_VALUE-(x-1)
so
-Integer.MIN_VALUE= Integer.MAX_VALUE+1
-(-2147483648)=2147483648 (which is 1 greater then MAX_VALUE)
hence result is :
Integer.MAX_VLAUE+x= Integer.MIN_VALUE-(x-1)
-2147483648-(1-1)
=> -2147483648-0
=> -2147483648
Hence both the values are same.
I know the way I Have expalined is bit difficult...
But this is the way it works.
Regards<br />Sandy<br />[SCJP 5.0 - 75%]<br />[SCWCD 1.4 - 85%]<br />------------------<br />Tiger, Tiger burning bright,<br />Like a geek who works all night,<br />What new-fangled bit or byte,<br />Could ease the hacker's weary plight?