where the static methods will live ,on stack ? can you
explain brefly



where the static methods will live ,on stack ? can you explain brefly..

Answer / suman rani

As you know static variable directly belongs to the class, so it is be stored in heap area where all the byte code of class are stored.That area is also called permanent code segment area.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can we override static methods in java?

0 Answers  


Explain the concept of proper inheritance?

0 Answers   Thomson Reuters, Virtusa,


What are the default and parameterized constructors?

0 Answers  


What is internal variable?

0 Answers  


How many bits is a double?

0 Answers  






What are the special characters?

0 Answers  


What is casting?

3 Answers  


List some oops concepts in java?

0 Answers  


What is scope & storage allocation of global and extern variables? Explain with an example

0 Answers   IBS,


When object is created and destroyed?

0 Answers  


Describe what happens when an object is created in java ?

0 Answers  


What is double parsedouble in java?

0 Answers  


Categories