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 stack explain?
What is a concrete classes? Is Java object class is concrete class?
What’s the difference between callable and runnable?
What value is a variable of the string type automatically initialized?
what state does a thread enter when it terminates its processing? : Java thread
Can we clone singleton object in java?
What is the difference between instanceof and isinstance?
What is multi level inheritance in java?
How do you clear a method in java?
What are kinds of processors?
What are the methods available in a class?
What is a nested structure?
How do you know if a value is nan?
How can you generate random numbers in java?
What is the statements?