why we cannot declare static variable inside a static method
Answer Posted / swamireddy
STATIC VARIABLES ARE DECLARED CLASS DIFINITION ONLY
WITHOUT DECLARE THE WITHIN STATIC METHODS.THE STATIC
METHODS ARE ONLY USE THE STATIC VARIABLES.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is basic syntax?
What is thread pool in java with example?
What is the flag in java?
Explain about static nested classes in java?
Explain jdk, jre and jvm?
Explain restrictions on using enum?
Why does it take so much time to access an applet having swing components the first time?
When object is created and destroyed?
What do you understand by synchronization?
Which package is always imported by default?
Can set contain duplicates?
What is a buffer in java?
Can I learn java in 3 months?
Why main function is static?
What is the meaning of course?