An instance variable is a variable which has one copy per object/instance. That means every object will have one copy of it. A class variable is a variable which has one copy per class. The class variables will not have a copy in the object.
Example : filter_none brightness_4 class Employee { int empNo; String empName, department; double salary; static int officePhone; } An object referred by empObj1 is created by using the following: Employee empObj1 = new Employee(); The objects referred by instance variables empObj1 and empObj2 have separate copies empNo, empName, department, and salary. However, the officePhone belongs to the class(Class Variable) and can be accessed as Employee.officePhone.