Why Static variable required in java?For ex,class A
{
static int a;
int b;
}
Why static is required?
Answer Posted / soumya
what is the advantage to declare a var as static instead of instance var..can you please tell me in brief?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Difference between a class and an object?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
Define iterator and methods in iterator?
Which package is used for pattern matching with regular expressions?
What method is used to specify a container's layout in java programming?
What will happen if static modifier is removed from the signature of the main method?
What are advantages of using Java?s layout managers than windowing systems?
When should you make a function static?
Can list be final in java?
Which package is imported by default?
What is the final keyword?
What one should take care of, while serializing the object?
What is ‘is-a ‘ relationship in java?
What is null object in java?
Explain java coding standards for variables ?