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 |
Is string pool garbage collected?
What is Java Package and which package is imported by default?
What is a lambda expression ? What's its use ?
what is the difference between object and class
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
What is method Overloading in the perspective of OOPS?
Can you sort a list in java?
What are memory tables?
What is bool mean?
What are legal modifiers that we can use to declare an inner class?
How we can declare a static variable?
What is queue in java?