Static Variable can referred in non-static method?
Answers were Sorted based on User's Feedback
Answer / nagarajan.s
yes,In Java static Variable can referred in non-static method,
but static method cannot referred non-static variable
Is This Answer Correct ? | 19 Yes | 1 No |
Answer / rableen khurana
Yes we can access static variable in non-static
methods....and we can access instance variable in static
method also with the help of object......
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / brijendra kumar soni(xavient)
No,In Java Non static method can not permitted the staic
variable.
Is This Answer Correct ? | 0 Yes | 17 No |
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is an empty list in java?
Is java free for businesses?
write a program to create an vector and listeterator.and value should be enter through keyboard.
how to handle exceptions in core applications?
What is the maximum length of a url?
How do you take thread dump in java?
What's the base class in java from which all classes are derived?
What’s meant by anonymous class?
Is hashset ordered?
what is the purpose of class "Object" which is base class for all classes?
Urgent requirement of JAVA/.NET/QA in a CMMI level3 MNC for Pune location.