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
How can you add and remove nodes in jtree?
Can a final variable be manipulated in java?
What is off heap memory?
How many types of exception can occur in a java program?
What is called module?
What is a double vs float?
What is the difference between JDBC 1.0 and JDBC 2.0?
Write a program to print count of empty strings in java 8?
Why does my function print none?
What happens if a constructor is declared private?
Is singleton class thread safe?
Explain what access modifiers can be used for methods?
What does escaping a character mean?
What is floor math?
Why char array is favored over string for the storage of passwords?