Static Variable can referred in non-static method?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is comparable and comparator interface?

582


when should you use stringbuilder class in a program?

528


what are three ways in which a thread can enter the waiting state? : Java thread

582


What exactly is a .class file?

581


What does s mean in regex?

555






what is heap memory?

660


What is module with example?

516


What is basic syntax?

553


Is java a pure object oriented language?

542


Can we have multiple catch block for a try block?

592


Can I extend singleton class in java?

635


What is string in java with example?

493


Is null a string?

558


What is regex used for?

550


Can main() method in java can return any data?

653