Answer Posted / ali
No Static Variable cannot declare in method.
but the method present in class can access the static variable
of class.
Or the method which is trying to access the static variable of
class but method is not part of that class at that time declare method as static then it can access that static variable.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is native code?
Can an interface be defined inside a class?
What is tree node in java?
What is array sorting in java?
What is a protected method?
Which collection is thread safe in java?
What is hashing in java?
What is getclass () getname () in java?
What happens when I use / and % with a negative numerator?
Does java have a compiler?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
What is the diffrence between inner class and nested class?
Is .net better than java?
What is communist flag?
What are the wrapped, classes?