Question: what is the difference between static and nonstatic members in java?
Answer: Static variables reduce the amount of memory used by a program. Static variables are shared among all instances of a class. Non static variables are specific to that instance of a class. ... Non static variable is like a local variable and they can be accessed through only instance of a class.