Static Variable can referred in non-static method?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are operators and its types?

587


What is illegal identifier in java?

552


Can we call a non-static method from inside a static method?

572


What is parsing a string?

604


What is mutable object and immutable object?

642






How is hashset defined in java?

532


What do you mean by a JVM?

574


What is the difference between variable declaration and variable initialization?

519


How do singleton patterns work?

529


When do you call copy constructor?

569


What is bigger kb or mb?

600


Can we have multiple public classes in a java source file?

566


Can we create our own daemon thread?

550


What is multiple inheritance? Is it supported by java?

534


What happens when main () method is declared as private?

660