What is static variable and static method?
Answer Posted / mallesh
A static variable is a variable who's single copy in memory
is shared by all objects,so any modifications to the static
variable will modify it's value in all objects.
Static variables are created in Method Area part of Memory.
Is This Answer Correct ? | 147 Yes | 30 No |
Post New Answer View All Answers
Why parsing is done?
What is a lightweight component?
Is vector ordered in java?
What is formatted output in java?
Why singleton is not thread safe?
Why main method is called first in java?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
Explain hashset and its features?
What is the difference between a checked and an unchecked exception?
How big is a boolean?
How to print nodes of a Binary tree?
What is mnemonic in assembly language?
Can variables be used in java without initialization?
Can we print null in java?
What happens when heap memory is full?