WHAT IS THE DIFFERENCE BETWEEN STATIC AND NON-STATIC VARIABLES?

Sumit Kesarwani

Total Post:782

Points:3910
Posted by  Sumit Kesarwani
Java 
 993  View(s)
Ratings:
Rate this:
  1. Sumit Kesarwani

    Post:782

    Points:3910
    What is the difference between static and non-static variables?

    A static variable is associated with the class as a whole rather than with specific instances of a class. Non-static variables take on unique values with each object instance.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!