Why Static variable required in java?For ex,class A
{
static int a;
int b;
}
Why static is required?
Answer Posted / za
because it help us to declare class field asglobal variable
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is a prefix function.write down a code to compute prefix function.
What is nullpointerexception in java?
What is jee6?
Define an enumeration?
Explain scope or life time of local variables in java?
What are the problems faced by java programmers who don't use layout managers?
What are the ways in which a thread can enter the waiting state?
What is garbage collection? Can it be forced to run?
Can a static method be final?
Is null in java?
What is the synonym of string?
What does the “static” keyword mean?
What are user defined exceptions?
Can I learn java in 3 months?
How do you calculate square roots?