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

Is java 11 paid version?

748


What is object class in java?

709


Which method returns the length of a string?

813


What is module in project?

758


Explain the difference between runnable and callable interface in java?

843


Which is better singleton or static class?

729


How do you remove duplicates from an array in java?

743


What is a constructor overloading in java?

790


Is string thread safe in java?

861


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

835


Can you explain the final method modifier?

803


How do you escape json?

784


List the different types of classloaders in java.

751


Is age discrete or continuous?

908


Why char array is preferred over string for storing password?

865