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

Posted on    August-26-2014 12:05 AM

 Java Java 
 1 Answer(s)
  759  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

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