I had studied that the static data members of class are getting memory at class loading time in the class information area (CIA) of class area,but i couldn't find out which memory area is for static methods . is it the method area in the class area ? but your answerold oneis also saying that static variables also get memory in heap but i had read it in complete refrence that the memory is alloted in CIA and it is saying that all the methods(static and instance)get memory in heap,but instance member function get memory in method area of class area.so according to you for what the the other memory areas(method area,stack,CIA,etc) are for?
Asked
Active
Viewed 115 times
3
-
did you try google ? – mlwn Jul 31 '15 at 19:46
-
1yes,there are different opinions.stackoverflow said it depends on jvm,how? – Manik Arora Jul 31 '15 at 19:49
-
Every time a method (static or instance) is *invoked*, some space is "allocated" on the current thread's *stack*, for parameters and local variables. when the method returns, the space is "popped" from stack. – ZhongYu Jul 31 '15 at 19:53
-
i am asking about the method itself not it's variables or other information – Manik Arora Jul 31 '15 at 20:09