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 do you achieve singleton?

0 Answers  


What is collections framework?

0 Answers  


String is an immutable object. Then how can the following code be justified. String s1 = ?ABC?; String s1 = s1+?XYZ?; s.o.p(s1); The output is ABCXYZ, which is the value of s1 ?

6 Answers   Flextronics, Keane India Ltd,


What is meant by 'Class access modifiers'?

0 Answers   HCL,


Is multiple inheritance supported by java?

0 Answers  


What is time complexity java?

0 Answers  


In Java list the methods that can be overridden?

0 Answers   Accenture,


Explain the importance of throws keyword in java?

0 Answers  


What is thin driver and thick driver. why it is called so?

2 Answers   Logisoft,


Name the runtime exceptions that occurs frequently?

4 Answers  


What is json parser in java?

0 Answers  


What is factor r?

0 Answers  


Categories