why we cannot declare static variable inside a static method
Answer Posted / srinu
generally all variables inside static method treated as
static
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
What are static blocks and static initalizers in java ?
how do I create a runnable with inheritance? : Java thread
What is the argument in java?
What is the use of conditional statement?
What are the two types of exceptions in java? Which are the differences between them?
How do you declare an array that will hold more than 64KB of data?
Do loops java?
Can we serialize static variables in java?
what do you mean by classloader in java?
Why vector is used in java?
Explain naming conventions for packages?
What are annotations in java?
What is stack class in java?
What causes memory leak in java?
What is unicode used for?