ContactUs :

Please send your Questions & Answers or Feedback to ""

What is the difference between an instance variable and a static variable?

Class variables are called static variables. There is only one occurrence of a class variable per JVM per class loader.When a class is loaded the class variables are initialized.

Instance variables are non-static and there is one occurrence of an instance variable in each class instance.Also known as a member variable or a field.

Related Posts Plugin for WordPress, Blogger...
Flag Counter