I have two questions with respect to Java memory management.
- Where are static and instance variables stored? I believe static var are stored in premgen, but I am not sure about the instance var.
- Is permgen a subset of heap or method area?
When I was googling, I found some stating that static vars are stored in the permgen section of heap, but others stating that permgen is a subset of the method area. If the later is true, then are the static variables stored in method area?