Why Static variable required in java?For ex,class A
{
static int a;
int b;
}
Why static is required?
Answer Posted / sumit pal singh
static keyword is mainly used for memory management purpose. And static variable is used for declare the common property of object.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How do I start learning java?
What is reverse function?
What is file in java?
What does localhost mean?
What is static data type in java?
What is immutable class in java?
How many bytes is a char in java?
What does s mean in regex?
Explain the importance of thread scheduler in java?
Where we write javascript code in html page?
What is singleton class in ruby?
What is the difference between the paint() and repaint() methods?
What is difference between word and integer?
What is the base class for error and exception?
What is module with example?