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 complexity in java?
What is the main advantage of passing argument by reference?
can I implement my own start() method? : Java thread
What is a control variable example?
What do you mean by chromounits in java8?
What are peerless components in java programming?
What is string intern in java?
What are static methods?
What is java regex?
What is a function in java?
What function extracts specified characters from a string?
What is the difference between the paint() and repaint() methods in java programming?
write a program that list all permutations of ABCDEF in which A appears before B?
What is a text string?
Why do we need strings in java?