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


Please Help Members By Posting Answers For Below Questions

What is complexity in java?

521


What is the main advantage of passing argument by reference?

497


can I implement my own start() method? : Java thread

548


What is a control variable example?

529


What do you mean by chromounits in java8?

524






What are peerless components in java programming?

577


What is string intern in java?

545


What are static methods?

572


What is java regex?

530


What is a function in java?

564


What function extracts specified characters from a string?

560


What is the difference between the paint() and repaint() methods in java programming?

621


write a program that list all permutations of ABCDEF in which A appears before B?

2009


What is a text string?

613


Why do we need strings in java?

519