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

Tell me about your ability to work under pressure

1968


what is aggregation in java?

782


Explain enumeration in java?

783


Are global variables initialized to zero?

725


Can one thread block the other thread?

810


What is sortedmap in java?

790


What ide should I use for java?

740


Explain what access modifiers can be used for variables?

826


What is the byte range?

809


What type of value does sizeof return?

784


What are the methods to rectify ambiguities in the interfaces in JAVA?

844


Can java list contain duplicates?

803


What is final method in java?

763


How do you identify if jvm is 32-bit or 64-bit from java program?

752


When can you say a graph to be a tree?

854