why static variable not used in instance?
help me plz...
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Sep 14, 2014, 10:33 AM
Whilst instance members of the class or struct can refer to static variables, static members cannot refer to instance variables unless, exceptionally, you pass them to the static method as parameters.
Hussain AhmedPosted Sep 14, 2014, 4:27 AM
Check this.
http://www.coderanch.com/t/528608/java/java/Difference-Static-Instance-variable