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 |
Can a variable be local and static at the same time?
What is the generic function?
What is floor in java?
Can an interface have a class?
Is break statement can be used as labels in java?
How do constructors use this() and super()?
What is the difference between a break statement and a continue statement?
I have a Person object with 5 variables and I want to store them in a file called Person.txt. What should I do?
I was asked to draw the class diagram for the below scenario which should obey OOPS concept. A Portal is to be developed for a school , which has 3 main divisions viz , Education , Admin & Trust. Each division has 2 sub divisions Kinder Garden & Higer Secondary.
What happens when a main method is declared as private?
22 Answers DELL, Infosys, L&T, Sun Microsystems,
Explain the role played by Java Virtual Machine in Java Programming?
how to print output with out using sop statements