title: +0 and -0 shows different behavior for int and float data
body: <p>I have read this post <a href="https://stackoverflow.com/questions/7223359/are-0-and-0-the-same">negative and positive zero</a>.</p>
  
  <p>To my understanding following code should give <code>true</code>  and <code>true</code>  as a output.</p>
  
  <p>However, it is giving <code>false</code> and <code>true</code> as a output.</p>
  
  <p>I'm comparing negative zero with a positive zero.</p>
  
  <pre><code>public class Test {
       public static void main(String[] args) {
              float f = 0;
              float f2 = -f;
              Float F = new Float(f);
              Float F1 = new Float(f2);
              System.out.println(F1.equals(F));
  
              int i = 0;
              int i2 = -i;
              Integer I = new Integer(i);
              Integer I1 = new Integer(i2);
              System.out.println(I1.equals(I));
        }
    }
  </code></pre>
  
  <p>Why do we have different behavior for 0's for <code>Integer</code> and <code>Float</code> ?</p>