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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a boolean expression in java?

535


How to make a write-only class in java?

577


Can you inherit a constructor java?

575


What is the console in java?

678


Explain about wait() method?

568






Why do I need to declare the type of a variable in java?

566


What are passing parameters?

588


what is the difference between Object Based Language and Object Oriented Language?

598


Explain, java is compatible with all servers but not all browsers?

611


What is the purpose of checked and unchecked exceptions in JAVA?

566


What was java originally called?

507


What is the core java?

542


Why java does not support pointers?

561


What is constructor chaining in java?

587


What happens if we don’t override run method ?

567