Home > DeveloperSection > Interviews > What is the difference between static and non-static variables?

Posted on    August-26-2014 12:05 AM

 Java Java 
Ratings:
 1 Answer(s)
  781  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
Posted on    August-26-2014 12:00 AM

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.


Don't want to miss updates? Please click the below button!

Follow MindStick