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 |
what is filters and its use?
What does ide stand for?
Why are pointers not secure?
Explain Global variables in Packages?
What is var keyword ?
How can we make a class singleton?
Why 1 is not a prime number?
What is the impact of declaring a method as final?
Howmany number of objects we can store in an ArrayList. Is there any limit?
Give the hierarchy of inputstream and outputstream classes.
What are static methods?
Is call by reference possible in java?