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

How many bytes is a char in java?

0 Answers  


What is contract between hashcode and equal method?

0 Answers  


Can we override private method in java?

0 Answers  


How many bits does a boolean take?

1 Answers  


Explain Event handling in AWT?

1 Answers   Infosys, TCS,






hoe can u call a constructor of a private classs to other inherited claa??

1 Answers  


Which is faster set or list in java?

0 Answers  


What is string in java with example?

0 Answers  


What does the @override annotation do?

0 Answers  


Can a final method be overloaded?

0 Answers  


Why is stringbuffer not immutable?

0 Answers  


What class of exceptions are generated by the java run-time system?

0 Answers  


Categories