Best practice to validate null and empty of a collection in java
<p>I want to verify whether a collection is empty and null. Could anyone please let me know the best practice.</p>

<p>Currently I am checking as below.</p>

<pre><code>if(null == sampleMap || sampleMap.isEmpty())
{
  // do something
} 
else
{
  // do something
}
</code></pre>
