If else difference
<p>Is there any difference between the below statements:</p>

<pre><code>  Object value = null;
  if(value == null) {

  } else if(value instanceof Long) {
  }
</code></pre>

<p>vs</p>

<pre><code> Object value = null;
 if(isNotEmpty(value)) {
 } else {

 }

 public boolean isNotEmpty(Object obj) {
   if(obj != null &amp;&amp; obj instanceof Long &amp;&amp; obj &gt;0){
       return true;
   }

   return false;
 }
</code></pre>
