Why Static variable required in java?For ex,class A
{
static int a;
int b;
}
Why static is required?
Answer Posted / aswini
Without using instance of the class means no need to use the class object to call static variable insted directly use the classname to use the static variable.moreover ,only one copy of static varible avaible to use all the classes.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the final keyword?
What is nested loop? What is dangling else condition in it?
What is a heavyweight component?
What is procedure writing?
Is string is a data type?
What is a local class in java?
What is your platform’s default character encoding?
What is int argc char * argv?
What Is Composition?
What is meant by flickering?
How many bytes is a string java?
What is string length in java?
What does n mean?
How do you check if a character in a string is a digit or letter?
Is java a security risk?