Static Variable can referred in non-static method?

Answers were Sorted based on User's Feedback



Static Variable can referred in non-static method?..

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

Static Variable can referred in non-static method?..

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

Static Variable can referred in non-static method?..

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

Post New Answer

More Core Java Interview Questions

What is meant by method overriding?

0 Answers  


How big is a boolean?

0 Answers  


what do you mean by java annotations?

0 Answers  


What is the difference between an array and an array list?

0 Answers  


What is java in simple terms?

0 Answers  






When abstract methods are used?

1 Answers  


What are the Main functions of Java?

0 Answers   Akamai Technologies,


What is meant by Java ?

2 Answers   CMC, Infosys,


Which java collection does not allow null?

0 Answers  


What is the console in java?

0 Answers  


What is jit compiler in java?

0 Answers  


What does @override mean?

0 Answers  


Categories