title: java.util.Objects.isNull vs object == null
body: <p>As you know, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Objects.html" rel="noreferrer"><code>java.util.Objects</code></a> is </p>
  
  <blockquote>
    <p>This class consists of static utility methods for operating on objects.</p>
  </blockquote>
  
  <p>One of such methods is <code>Objects.isNull()</code>.</p>
  
  <p>My understanding is that <code>Objects.isNull()</code> would remove the chance of accidentally assigning a null value to object by omitting the second <code>=</code>.</p>
  
  <p>However, the API Note states:</p>
  
  <blockquote>
    <p>This method exists to be used as a Predicate, filter(Objects::isNull)</p>
  </blockquote>
  
  <p>Would there be any reason/circumstance for which I should use <code>object == null</code> over <code>Objects.isNull()</code> in an <strong>if statement</strong>?</p>
  
  <p>Should <code>Objects.isNull()</code> be confined to Predicates exclusively?</p>