Suppost I have the following code and MyClass is in the classpath
Could anyone please tell me
1. MyClass loaded
2. Memory allocated for MyClass
3. Object c1 created
When these 3 step happend? (1 and 2 together or 2 and 3 together or they all separted)
Thanks a lot
public class
Test {
public static void main(
String[] args) {
MyClass c1 = null;
MyClass c2 = null;
//other stuff
c1 = new MyClass();
c2 = new MyClass();
}
}