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

How use .contains in java?

0 Answers  


Is java still necessary?

0 Answers  


How can you sort dates?

2 Answers   TCS,


Can we define a package statement after the import statement in java?

0 Answers  


What is the difference between menuitem and checkboxmenu item?

0 Answers  






For which statements we use a label?

3 Answers   Wipro,


Difference between association, composition and aggregation?

0 Answers  


Why string is not thread safe?

0 Answers  


Can abstract class have private constructor?

0 Answers  


Difference between string s= new string (); and string s = "abv";?

0 Answers   Cap Gemini,


What is :: operator in java 8?

0 Answers  


What are green threads in java?

0 Answers  


Categories