Question: what is difference between class variable and instance variable in java?
Answer: Difference Between Class Variables And Instance Variables In Java : Class variables are declared with keyword static and Instance variables are declared without static keyword. Class variables are common to all instances of a class. These variables are shared between the objects of a class.