Forums Register Login

Loading,Linking and initialization

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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.
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 648 times.
Similar Threads
what does loading a class actually mean
Static classes and Classloaders
Is import java.util.List faster than java.util.*
Class loading
How many Java Classes can be loaded
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:02:25.