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

Where and how can you use a private constructor?

0 Answers  


Can we declare a constructor as final?

0 Answers  


In Java, what types of classes perform inheritance?

2 Answers  


What are the types of statement? explain

1 Answers   SysBiz,


Explain some best practices you would apply while using collection in java?

0 Answers  


Can a class extend abstract class or interface? why

4 Answers   Wipro,


Why webdriver is an interface?

0 Answers  


Highest level event class of the event-delegation model?

0 Answers  


Can we inherit the constructor in a Class?please give one example.

9 Answers   iGate,


How is it possible for two string objects with identical values not to be equal under the == operator?

0 Answers  


What are the restrictions that are applied to the java static methods?

0 Answers  


What are the three best choices for a development environment?

0 Answers  


Categories