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
what is recursion in java
What is difference between final and immutable?
What is string buffer?
What is the += operator called?
What are the types of strings?
What are different type of exceptions in java?
What is the difference between char and char *?
Write a program to print fibonacci series
How many bytes is a unicode character?
Why do we need data serialization?
Why can't we use static class instead of singleton?
What is math exp in java?
Can we override the overloaded method?
Can I overload to string method
What is methods in java?