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 the difference between call by reference and call by pointer?
What is used of static keyword in java?
What happens when heap memory is full?
How many types of literals are there in JAVA?
explain the difference between jdk and jvm?
Tell me are there implementations for sorting and searching in the java libarary?
Can we use a switch statement with strings?
Explain about static imports in java?
How objects of a class are created if no constructor is defined in the class?
What is an example of procedure?
what invokes a threads run() method? : Java thread
What is math in java?
Can you explain inner class.
What is the difference between == and === javascript?
can any body body expalin best definitions & best real time exaples for opps concepts.