aspose file tools
The moose likes Java in General and the fly likes Loading,Linking and initialization Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply 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: 409
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: 6592
    
    1

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 - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading,Linking and initialization
 
Similar Threads
Static classes and Classloaders
How many Java Classes can be loaded
Is import java.util.List faster than java.util.*
what does loading a class actually mean
Class loading