java : Handling Null check through a Combination
<p>I am able to handle null check on a String with this below piece of code </p>

<pre><code> if (acct != null &amp;&amp; !acct.isEmpty()|| !acct.equals(""))
</code></pre>

<p>what i mean from the above code is , if</p>

<ol>
<li>Accountid is not equal to null And</li>
<li>Accountid length is greater than 0
(These two is a combination of checks ) </li>
</ol>

<p>Or </p>

<ol>
<li>Accountid  is not equal to ""</li>
</ol>

<p>Does my code satisfy these combination i mentioned above , or do i need to add any brackets ?? to satisfy the combination ( first 1 and 2 ) i mentioned above ??</p>

<p>Thanks </p>
