where final and static variable stored?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
How do you achieve singleton?
What is collections framework?
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'?
Is multiple inheritance supported by java?
What is time complexity java?
In Java list the methods that can be overridden?
Explain the importance of throws keyword in java?
What is thin driver and thick driver. why it is called so?
Name the runtime exceptions that occurs frequently?
What is json parser in java?
What is factor r?