Reputation: 91
Are the static members of a class - static variables, static blocks, and static methods stored in the Metaspace region after Java 8? If not, where are they stored?
There is no concrete information regarding the same elsewhere. All that I was able to get the information was that static variables are allocated memory at the time of class loading. But my question is where exactly is the memory being allocated - stack or heap or metaspace?
Thanks in advance!
Upvotes: 1
Views: 1452