The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

reply

Posted by chandu on December 23, 2000 at 11:44 AM

> What is the order of java execute one program in runtime and what is the details in every period. such as, when the class is loaded, and how the members are allocated to memory space, the diffirence between static and instance member. And the same question about the object.


hello friend,

when u applied static to a variable some memory is allocated when ever u run the java program without the concern of class and u can call that variable directly as memory is allocated separately.but in the case of instance variable,memory is allocated when u create an object for an class, so u have to refer that particular variable through the class object only.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us