where final and static variable stored?

Answer Posted / srinivaskumar

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can variables be used in java without initialization?

818


Which is better ascii or unicode?

776


Can a static block throw exception?

866


What is the size of a string in java?

749


What is an interface in java? Explain

832


What is thread count in java?

742


Is hashmap thread safe?

775


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1782


How is java hashmap implemented?

785


Explain reverse a linked list recursive java solution?

759


What is use of super keyword in java?

822


What is a boolean output?

733


What is class forname?

742


Why string objects are immutable in java?

815


Are functions objects in java?

810