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 static method access instance variables ?
What about features of local inner class?
What is matcher in java?
What are the java ide's? Explain
When should I use singleton?
How do you trim a space in java?
How to split a string in java?
Can we sort list in java?
What is busy spin, and why should you use it?
What is return type in java?
How many return statement are allowed in a function?
What is the definition of tree ?
What are different data structures in java?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What does opcode mean?