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 the purpose of the wait(), notify(), and notifyall() methods? : Java thread

0 Answers  


What is an empty list in java?

0 Answers  


Is java free for businesses?

0 Answers  


write a program to create an vector and listeterator.and value should be enter through keyboard.

1 Answers   Axcend,


how to handle exceptions in core applications?

2 Answers   CSS,






What is the maximum length of a url?

0 Answers  


How do you take thread dump in java?

0 Answers  


What's the base class in java from which all classes are derived?

0 Answers  


What’s meant by anonymous class?

0 Answers  


Is hashset ordered?

0 Answers  


what is the purpose of class "Object" which is base class for all classes?

3 Answers  


Urgent requirement of JAVA/.NET/QA in a CMMI level3 MNC for Pune location.

0 Answers  


Categories