What is the difference between static and non-static variables?

What is the difference between static and non-static variables?

Reema
Views: 682 | Community Opinion: 1

Tags..  Non-Static Variables  Static Variables  Core Java Interview  Java

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Demos Said..

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






What do you think? Add your opinion/answer
*Name
*your opinion/answer: