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 difference between a field variable and a local variable?

569


What is polymorphism java example?

540


What is passing by reference in java?

535


What is sizeof in java?

553


What is constructor and its types?

535






Difference between ‘>>’ and ‘>>>’ operators in java?

639


State some advantages of java?

709


How many ways can you break a singleton class in java?

482


What methods are used to get and set the text label displayed by a button object?

550


How do constructors use this() and super()?

542


What is the use of arraylist in java?

521


Are variables stored in ram?

549


What are the high-level thread states in java programming?

581


What is r * in math?

548


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

582