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 are the different approaches to implement a function to generate a random number?
0 Answers Axtria, ITC Indian Tobacco Company,
what is an object class?Explain its methods?
Explain garbage collection in java?
How the threads are synchronized?
When is the arraystoreexception thrown?
What is local declaration?
Why does java doesnt suuport unsigned values?
What is anagram word?
Is null in java?
What are the types of inner classes (non-static nested class) used in java?
class A { public void disp(int a,int b) { System.out.println("hai"); } } class B { public void disp(int a,int b,int c) { System.out.println("hai"); } } above program is overloading or overriding?
What is the difference between static and non-static variables in java programming?