title: When does a java object become non-null during construction?
body: <p>Say you are creating a java object like so:</p>
  
  <pre><code>SomeClass someObject = null;
  someObject = new SomeClass();
  </code></pre>
  
  <p>At what point does the someObject become non-null? Is it before the <code>SomeClass()</code> constructor runs or after?</p>
  
  <p>To clarify a little, say if another thread was to check if <code>someObject</code> was null while the <code>SomeClass()</code> constructor was halfway through completion, would it be null or non-null?</p>
  
  <p>Also, what would be the difference if <code>someObject</code> was created like so:</p>
  
  <pre><code>SomeClass someObject = new SomeClass();
  </code></pre>
  
  <p>Would <code>someObject</code> ever be null?</p>