What to use: boolean variable instead or a null value for true/false recognition
<p>The question is quite simple.</p>

<pre><code>Object obj;

obj = new Object();

if(obj!=null) {
    // this means my object is *set*
}
</code></pre>

<p>The other</p>

<pre><code>Object obj;
Boolean objSet = false;

obj = new Object();
objSet = true;

if(objSet) {
    // this means my object is *set*
}
</code></pre>

<p>Which one is more <em>correct</em>. I hear databases and some methods act will null in different ways.</p>
