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 does indexof work?
Distinguish method overloading and overriding
What does next mean in java?
How is hashset defined in java?
When abstract methods are used?
What is map and hashmap in java?
What is a consumer in java?
What is the role of the java.rmi.naming class?
Define interface?
What does 0 mean in boolean?
What is the difference between instanceof and isinstance?
take any 4 input numbers. like 2345.. wanted out put is All 16 combinations of the number 2345.. for example- taking input as 4565 output- 5654 4556 4655..