Question: what is the difference between class 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 can be accessed using either class name or object reference. Instance variables can be accessed only through object reference.