Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When class is loaded (means)

 
Shivit Agarwal
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
What does it really mean when class is loaded ??

What does the statement reference to ?? runtime ??
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Loading a class" is what happens when the JVM finds a class definition (for example, a *.class file on disk or inside a *.jar file), reads it into memory, and creates the data structures inside the JVM to represent that class and allow instances of the class to be created.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic