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 |
Where and how can you use a private constructor?
Can we declare a constructor as final?
In Java, what types of classes perform inheritance?
What are the types of statement? explain
Explain some best practices you would apply while using collection in java?
Can a class extend abstract class or interface? why
Why webdriver is an interface?
Highest level event class of the event-delegation model?
Can we inherit the constructor in a Class?please give one example.
How is it possible for two string objects with identical values not to be equal under the == operator?
What are the restrictions that are applied to the java static methods?
What are the three best choices for a development environment?