Static variable are used within the static method. Non static variable do not exits in the static method. Static variables are shared by its class instances. Static variable can be used without using the instances of that class.This can be seen in the below program.
Value of static variable j is 1
Posted on: April 9, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles