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 is java used for on a computer?
Mention some interfaces implemented by linked list in java.
Can you have two constructors in java?
Is integer passed by reference in java?
Is static variable stored in heap?
Is math class static in java?
How to retrieve data from database in java using arraylist?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
In how many ways we can create threads in java?
Explain the difference between abstract classes and interfaces in java?
how to create multithreaded program? Explain different ways of using thread? : Java thread
Explain the difference between runnable and callable interface in java?
Can we use switch statement with strings?
Explain the significance of class loaders in bootstrap?