Sponsored Link •
|
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:
> 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.
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
|