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 public static void main?
Can you pass by reference in java?
What do you understand by abstract classes?
what modifiers are used with top-level class?
Explain hashset and its features?
Is int primitive data type?
What are the advantages of the model over the event- inheritance model?
What is the difference between throw and throws?
What is a numeric literal?
What is the this keyword?
How many tetrahedral voids are there in bcc?
wat is class level lock and object level lock