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
How do generics work in java?
How much ram can a 64 bit processor theoretically?
What is the difference between member variables initialization and assignment in a constructor?
Why main function is static?
What do you mean by default constructor in java?
What an i/o filter in java programming?
What is the full meaning of java?
Differentiate between stringbuffer and string?
Why constructor has no return type?
Can we define a package statement after the import statement in java?
Why are lists ordered in java?
Which object oriented concept is achieved by using overloading and overriding?
Which method cannot be overridden in java?
What is a null check?
Name few java 8 annotations ?