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
Can a final variable be initialized in constructor?
What is the properties class in java programming?
What is type inference in java8?
how are methods defined?
Can we extend a class with private constructor?
Can an interface extend another interface?
What are advantages of using Java?s layout managers than windowing systems?
What do you mean by pointer value and address?
What is scanner in java?
Is minecraft 1.15 out?
How does list work in java?
What is default locale java?
What is a flag value?
Can interface be private in java?
What is boolean keyword in java?