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 |
What is meant by wrapper classes?
Is break statement can be used as labels in java?
What are the three best choices for a development environment?
Define how can we find the actual size of an object on the heap?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
Is string is a class in java?
Is char * a string?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
What is the reason that multiple inheritance is not possible in java??
What are the four integer types supported by java?
what is object-oriented programming in java?
Why pass by reference is not possible in java?