1.

What Is The Difference Between Static And Non Static Variables ?

Answer»

A static variable is ASSOCIATED with the CLASS as a whole rather than with SPECIFIC instances of a class. There will be only one value for static variable for all instances of that class. Non-static VARIABLES take on unique values with each object instance.

A static variable is associated with the class as a whole rather than with specific instances of a class. There will be only one value for static variable for all instances of that class. Non-static variables take on unique values with each object instance.



Discussion

No Comment Found