Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Loading,Linking and initialization

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic