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

what is the final keyword denotes in java?

791


Does list maintain insertion order java?

694


What is a void in java?

788


Is a copy constructor?

825


What is nextline method in java?

790


What is the abstraction?

787


How to change value in arraylist java?

746


Is java an ide?

726


What is the length of a string?

738


Why wait and notify methods are declared in object class?

795


How do I convert a string to an int in java?

785


What is a default method?

754


What is the order of arraylist in java?

826


Explain about exception propagation?

767


What is difference overloading and overriding?

808