where final and static variable stored?

Answers were Sorted based on User's Feedback



where final and static variable stored?..

Answer / sadikhasan palsaniya

Code of method and constructor or static and final field of
the class are store in "Method Area" which is non heap Memory.

Is This Answer Correct ?    19 Yes 5 No

where final and static variable stored?..

Answer / pradeep reddy

Final and staic variable is stored in Method area which even stores the class structure like method,constructor and static fields.Method area is a non heap memory.

Is This Answer Correct ?    8 Yes 4 No

where final and static variable stored?..

Answer / srinivaskumar

static and local variable are stored in stack memory,
in case of final variable it is dependent, if final variable is instance it stored in heap, if static it is stored in stack.....

Is This Answer Correct ?    3 Yes 15 No

Post New Answer

More Core Java Interview Questions

What is another word for methodology?

0 Answers  


In method overloading ,if i change the return type to Long instead of INT,is the program execute

6 Answers   HCL,


Is java hashset ordered?

0 Answers  


How is final different from finally and finalize?

0 Answers  


What is the use of toarray () in java?

0 Answers  






How multipleInheritance is possible in java?

18 Answers   Satyam,


Is it possible to use string in the switch case?

0 Answers  


What is scope & storage allocation of static, local and register variables? Explain with an example.

0 Answers   IBS,


what is difference betwenn Access Specifier and Access Modifier ????

2 Answers  


What is the formula to calculate percentage?

0 Answers  


What is finalize()? Is finalize() similar to a destructor?

0 Answers  


What is function and method in java?

0 Answers  


Categories