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
What are the advantages of passing this into a method instead of the current class object itself?
What is a static method in java?
Explain naming conventions for packages?
What is hashmap and map?
Can a constructor call the constructor of parent class?
What technique can be employed to compare two strings?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
What about main thread in java?
What is hashtable and explain features of hashtable?
How long will it take to learn java?
Explain aggregation in java?
State the main difference between c++ and java?
What is Java Reflection API? Why it’s so important to have?
Is singleton class immutable?
Why hashmap is used in java?