Static Variable can referred in non-static method?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better list or arraylist in java?

656


Can java run on google chrome?

885


What is a list in java?

720


what type of questions asked for barclays technologies pune please send urgent

5437


What is the significance of java packages?

849


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

872


What is the difference between iterator and enumeration ?

744


what is server side caching?

1810


How do you end a program?

759


What is meant by method?

789


Why string is not thread safe?

770


Why put method is used?

766


How do you write methodology?

736


What are synchronized blocks in java?

792


When should I use singleton?

701