Why Static variable required in java?For ex,class A
{
static int a;
int b;
}
Why static is required?
Answer Posted / soumya
what is the advantage to declare a var as static instead of instance var..can you please tell me in brief?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the concept of proper inheritance?
What are the main differences between notify and notifyAll in Java?
What is downcasting?
What is flag in python?
What is the purpose of declaring a variable as final?
Why is java so popular?
What is the difference between static and global variables and also define what are volatile variables?
How can you write a loop indefinitely in java programming?
What is java reflection api?
What is struts in java?
Can we print null in java?
What is the constructor?
Difference between == and .equals() ?
What is vector?
how come we know the object is no more used in the class?