File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Loading,Linking and initialization 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 "Loading,Linking and initialization" Watch "Loading,Linking and initialization" New topic
Author

Loading,Linking and initialization

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
I am not clear about the loading of a class.
Exactly where is the class loaded.Can we see how much memory is taken by my class.
I think the sequence is like this way :
1.Loading : Happens just after we write :
java classname
Loading means conversion of our class file to binary and bringing that binary to the jvm memory.
--please tell me how much memory is available to jvm,and is that memory refers to ram only.
I think you people understood what i want to say.
Kind let me know the proper sequence and meaning of each step.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Can we see how much memory is taken by my class


Strictly speaking - no

java classname


The byte code is loaded into the JVM using the java command, yes.

how much memory is available to jvm,and is that memory refers to ram only


You can configure that with the Xmx and Xms flags when you invoke the interpreter.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading,Linking and initialization