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 |
When we give defination of interface method in the class why method must be public???
Do you know thread pools?
A class can be a subclass of itself?
What variables are stored in stack?
How to make a method thread safe without using synchronized keyword?
8 Answers Persistent, Societe Generale,
What is final access modifier in java?
How to check if a list is sorted in java?
What is the most important feature of java? What is an interface?
What is the difference between array and arraylist? what is the difference between arraylist and linkedlist?
Can we have try block without catch block?
Can you achieve runtime polymorphism by data members?
What is map and hashmap in java?