Why Static variable required in java?For ex,class A
{
static int a;
int b;
}
Why static is required?
Answer Posted / sumit pal singh
static keyword is mainly used for memory management purpose. And static variable is used for declare the common property of object.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is percentage in java?
Can you explain the final method modifier?
How to write custom exception in java?
Why we go for collections in java?
What is the default execution method in java?
Is ruby built on java?
What is maximum size of arraylist in java?
How many threads can java run?
What is the difference between arraylist and hashset in java?
What is tcp ip in java?
What is use of a abstract variable?
Difference between object instantiation and construction ?
What is java Applet?
Write a function to print Fibonacci series and Tribonacci series?
how are methods defined?