When the object gets created
<p>I have below scenario in java.</p>

<pre><code>class Apple {

    static Apple ap = new Apple();

    public static void main(String[] arg) {
    }
}
</code></pre>

<p>When does this global object get created?<br>
If it gets created at the classloader time, does it loads all the non static members at that time?</p>
