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

How do you check if two strings are equal in java?

577


Why put method is idempotent?

456


What are aggregate functions explain with examples?

522


What are the new features in java 8?

567


How will you print number in reverse (descending) order in BST.

575






What is a heavyweight component?

542


Java openings 3 - 5 years, Lnt Infotech. requirements - core java, J2ee, struts, hibernate Interview Date:- 19 March 2011 Time:- 9:00 AM to 12:00 Pm Interview Location - L & T Infotech, Manapakkam, Chennai Refererral PS NO:- 291649 (Please mention this when u fill the form only then u will be considered for interview) Documents Required:- Latest Resume, Photograph and last 3 payslips Mail me on vasan2211@gmail.com once u appear for interview

2852


What is the final class?

548


What do you mean by JVM?

585


Does java vector allow null?

537


Why java does not support pointers?

558


Explain 5 features introduced in jdk 1.7?

610


What are the concepts of 'OOPS'?

596


Why java is platform independent? Explain.

597


Can we synchronize static methods in java?

599