why we cannot declare static variable inside a static method
Answer Posted / ravikiran
Because all the variales inside static method are by
default static
| Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
Explain Basics of OOP Language in java
How does the garbage collector works in java?
Can we use string in the switch case?
What is parsing in java?
What is difference between equal and == in java?
What are the differences between Java 1.0 and Java 2.0?
What are the drawbacks of singleton class?
How do I run java on windows?
What is meant by memory leak?
How is a variable stored in memory?
What is a stringbuilder?
Which variables are stored in stack?
What is the mapping mechanism used by java to identify IDL language?
What is string immutability?
What is tostring () method?