2013年9月6日星期五

java instantiate deep Neighborhoods !

I am new to java novice soon ! Find great God enlighten me . .
1.
java virtual machine will load the class after class of local variables are initialized !
is not to say
class hello {
public String a = "hello";
}
In fact, at this time already have a variable string "hello" address !
2.
The following is speculation pointing hope god
If a correct said
then that in fact almost all classes and instances
in memory, they have their own space and are initialized

The difference is that instance is the result after modifying the class constructor
3.
If two correct
is not a class at instantiation time !
The first is given a copy of the class ,
then modify the copy constructor is run
The result is the final instance


------ Solution ------------------------------------ --------
1. fault. Only static variables will be allocated when the class is loaded address , your class is actually stored in the jvm bytecode memory. Only object is instantiated , the property will assign addresses .
2,3 would not have answered it
------ Solution ---------------------------- ----------------
1. at this time and the hello have a static string as a number stored in the . class file. Or has been read in memory
2. has its own space is right, as instantiated, only your new ( including a variety of ...... ) when it will occur . The definition of this class reads the virtual machine process can be considered as load, and generate an instance when is the initiate, generally the first new class of this class or call the static method , it will trigger the load.
3. did not copy a say
------ For reference only ---------------------------- -----------
  The reply deleted by an administrator at 2013-09-06 16:00:46

------ For reference only ---------------------------------- -----

first post, first of all thank you posts.
The following is my understanding after watching :
1. put . class file is loaded into the JVM memory ! At this point each . Class file is a class
2. When running code when new class of objects which , put the . class files interpreted into machine code , and assign addresses and more !
3. machine code to run constructor initializes the object properties.

would also like to look at the source to understand, but the code is more difficult to see the novice !
still would like to understand the next general framework !

------ For reference only ---------------------------------- -----

first post, first of all thank you posts.   
The following is my understanding after watching :   
1. put . class file is loaded into the JVM memory ! At this point each . Class file is a class   
2. When running code when new class of objects which , put the . class files interpreted into machine code , and assign addresses and more !   
3. machine code to run constructor initializes the object properties.   
  
would also like to look at the source to understand, but the code is more difficult to see the novice !   
still would like to understand the next general framework !   
 

------ For reference only ---------------------------------------

first post, first of all thank you posts.     
The following is my understanding after watching :     
1. put . class file is loaded into the JVM memory ! At this point each . Class file is a class     
2. When running code when new class of objects which , put the . class files interpreted into machine code , and assign addresses and more !     
3. machine code to run constructor initializes the object properties.     
    
would also like to look at the source to understand, but the code is more difficult to see the novice !     
still would like to understand the next general framework !     
         
    
Thank you ! how to sub- ah !
------ For reference only -------------------------------------- -

first post, first of all thank you posts.       
The following is my understanding after watching :       
1. put . class file is loaded into the JVM memory ! At this point each . Class file is a class       
2. When running code when new class of objects which , put the . class files interpreted into machine code , and assign addresses and more !       
3. machine code to run constructor initializes the object properties.       
      
would also like to look at the source to understand, but the code is more difficult to see the novice !       
still would like to understand the next general framework !       
               
              
Thank you ! how to sub- ah !  
Results posted to the sub ah

没有评论:

发表评论