Originally posted by Jim Kirkby:
So the option 'f' shouldn't be true 'cause for the Integer.MIN_VALUE and Long.MIN_VALUE, the pass-in parameter and return value are the same, both negative. Right?
The source code for the Math.abs method is as follows.
In my opinion, it is always correct to say the following.
If the argument, arg, is less than zero then the returned value is -arg.
In my opinion, the fact that the negation of negative infinity is the same as negative infinity doesn't violate the above quote.