Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class Loading

Status
Not open for further replies.

bsuribabu

Programmer
Apr 4, 2002
25
0
0
IN
Hi,


What are the differences between Class Loading and Class Instance creation ?
Is it possible to have a instance creation at the time of class loading .


Suri
 
Class loading refers to the operation of the JVM finding the byte code for the class.

Instance Creation is when an instance gets allocated in memory for a class object.

>> Is it possible to have a instance creation at the time
>> of class loading .

Well you normally don't care "when" the class is loaded. When you want an instance you create one. If your asking if you can be notified of the "Class loading" event, i am not aware of any such mechanism. It might be possible to do that if you write your own class loader.

-pete


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top