+1 vote
in JAVA by

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

1 Answer

0 votes
by
A static variable is shared among all instances of a class and is created only once, while a non-static variable is unique to each instance of a class and is created every time an object is created.
...