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
How will you print number in reverse (descending) order in BST.
How will you serialize a singleton class without violating singleton pattern?
What is the difference between sop and work instruction?
Why string is a class?
How many static init can you have?
Where are the local variables stored?
What is getclass () getname () in java?
What do you understand by private, protected and public?
Write a java program to print fibonacci series?
How hashset works internally in java?
What are the two parts of a conditional statement?
What types of index data structures can you have in java?
What is boolean keyword in java?
How concurrent hashmap works?
Explain about automatic type conversion in java?