ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

Diff b/w static variable and a instance variable?

Class vars are called static vars. There is only one occurance of a class var per JVM per class loader. When a class is loaded the class vars are initialized.

Instance vars are non-static and there is one occurance of an instance var in each class instance.

 

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