Search code examples
javamemory-managementstaticstatic-memberspermanent-generation

Where does the Static members reside in memory,is it permanent generation?


Static members where does they reside. i need an detail explanation of static ,local and instance members memory allocation(variables,methods). Memory management(Is it permanent generation).


Solution

  • static members : permanent generation(heap)

    local variable : stack memory which is not heap. refer here http://tutorials.jenkov.com/java-concurrency/java-memory-model.html