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
Write a program to reverse a number in java?
What is the use of hashmap in java?
Can we start a thread twice in java?
Explain what is encapsulation?
What are the different http methods?
Which software is used for java programming?
What is bom encoding?
When do we use synchronized blocks and advantages of using synchronized blocks?
How do you compare two strings lexicographically?
What is arrays fill in java?
What initialize variables?
What is a two-pass assembler?
What is the relationship between class and object?
What do you know about the garbage collector?
What are selection structures?