Doubt: I agree with statement 1 as -0.0f is not equal to 0.0f but why statement 2 is true? It should not be true as per equality of Objects and primitives.
Statement 2 is true because that is how it is defined by the IEEE spec. In a comparison, negative zero is equal to positive zero.
As for why statement 1 is false, meaning why it violates IEEE specs -- this was done so maps and sets don't consider positive and negative zero as duplicates of each other.
Henry