title: Java new long(0)
body: <p>In my class I have this parameter:</p>
  
  <pre><code>public Long label_id ;
  </code></pre>
  
  <p>When I try to evaluate the value from label_id which is 0</p>
  
  <pre><code>if(item.label_id == new Long(0)) {
      Doesn't enter here
  } else {
      Enters here
  }
  </code></pre>
  
  <p>It is supposed to enter the condition since both are zero but it enters the else condition.  I even tried debugging the code:</p>
  
  <pre><code>label_id    Long  (id=142)  
      value 0
  </code></pre>
  
  <p>Am I missing something here?</p>