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

Total Post:0

Points:0
Java 
 1126  View(s)
Ratings:
Rate this:
  1. 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!