What is the advantage of null assignment in Java?
<p>I see a lot of code like this:</p>

<pre><code>SomeObject someObject = null;

try{

   someObject = ObjectFactory.createSomeObject();
   ...
</code></pre>

<p>What is the advantage of doing this compared to this:</p>

<pre><code>SomeObject someObject = ObjectFactory.createSomeObject();
</code></pre>
