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
Can I learn java in 3 months?
What is meant by anonymous class?
What is the difference between the boolean & operator and the && operator in java programming?
What is difference between fileinputstream and filereader in java?
Can you override private or static method in java?
What is the use of optional ?
Explain naming conventions for packages?
Can we declare main () method as non static?
When do we need to use internal iteration? When do we need to use external iteration?
Should a main method be compulsorily declared in all java classes?
What is map and hashmap in java?
What is the use of hashmap in java?
What methodology can be utilized to link to a database?
How are variables stored?
What is the different between get and post?