aspose file tools*
The moose likes Java in General and the fly likes simpler java creation help please! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "simpler java creation help please! " Watch "simpler java creation help please! " New topic
Author

simpler java creation help please!

donald rieck
Ranch Hand

Joined: Mar 12, 2003
Posts: 75
create a class > app.java
compile it > javac app.java
what goes on?:
JVM loads class.
Static members are initialized?
JVM goes to the main method.
Object is declared in main: App myApp;
Object creation: myApp = new App();
New is envoked.
New operator allocates memory.
New operator calls the super ctor.
New operaator calls the original ctor.
Constructor creates the "object."
Constructor body is not yet executed though.
Constructor initializes all instance variables to 0,null or false.
Constructor body is now executed.
Is this a good "loose" interpretation?

[ March 15, 2003: Message edited by: donald rieck ]
Leandro Oliveira
Ranch Hand

Joined: Nov 07, 2002
Posts: 298
read this, it is a very complete explanation on what happens, step by step, from loading, linking, creation of objects, finalization of objects, to unloading of classes:
http://java.sun.com/docs/books/jls/second_edition/html/execution.doc.html#44411

hope it helps!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: simpler java creation help please!