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 |
When is an object in the mean to garbage collection?
Is an integer an object?
JVM is platform independent or depeneded?
How does map works in java?
How large is a boolean?
class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); }
How do you change an int to a string?
What are inbuilt functions?
why we need this (1.object,2.class,3.data hiding,4.encapsulation,5.abstraction,6. polymorphism,7.inheritance)
Is there any way to skip finally block of exception even if some exception occurs in the exception block?
What are nested classes in java?
Is int a class in java?