Hi > So, static members are stored outside the heap? Where are they stored? > PermGen?
For sure, no. ALL persistent java objects are on the heap. With optimization some very short living objects may reside on the stack only. References to static objects ARE probably stored in PermGen, but the objects themselfes are surely not. They are created as any other object during object initialization using the new operator. I am not sure, where the Class objects themselfes reside. Maybe they are on PermGen or they are in the heap and are referenced in PermGen. Whereever they are, static references are in there. Regards, Steffen
smime.p7s
Description: S/MIME cryptographic signature