Where to construct an object
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1994218/instance-variable-initialization-in-java">Instance variable initialization in java</a>  </p>
</blockquote>



<p>Hello, can someone tell me what the difference / pros or cons of creating an object with the declaration of the class instance vars ie..</p>

<pre><code>public class ClassName{
    Object o = new Object();
}
</code></pre>

<p>to in the contructor</p>

<pre><code>public class ClassName{ 
    Object o;
    public ClassName(){
        o = new Object();
    }
}
</code></pre>

<p>thank you!</p>
