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
Is break statement can be used as labels in java?
What does the exclamation mark mean in java?
What is variable argument in java?
What is an association?
Can an interface extend another interface?
What are the main uses of java?
What is the use of inner class?
What access modifiers can be used for methods?
Which class cannot be a subclass in java?
Explain public static void main(string args[]).
how are methods defined?
What are peerless components in java programming?
What is substring 1 in java?
How does indexof work?
How do you remove spaces in java?