java in the array, the static variable is how memory is allocated?

Category: Java SE
 
dragonhb
2010-03-23 08:53:56

Sponsored Links
java in the array, the static variable is how memory is allocated? code which is placed in the region?

Sponsored Links

cjm819
2010-03-23 09:12:38
array allocated on the heap, each application has its own virtual machine, each virtual machine has its own heap space, a virtual machine can have multiple threads, each thread has a separate java stack!

static variables are allocated in the method area, is not the same with the pile, the pile is store all objects, methods district is assigned class information, including static variables and contents of the block!
hj445tur
2010-03-23 09:38:26
array on the heap, static class variables are all in the stack?
l36181298
2010-03-23 10:09:42
array in the stack area, static variables in memory specifically requested by a space inside the store, when not new in the use of a java object that can be called directly. . .
code should be in the code area
xiaorong317
2010-03-23 10:34:13
is defined when the allocation ah,
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.